diff -r a288712d86d5 -r daf12f69699f mercurial/wireproto.py --- a/mercurial/wireproto.py Sat Oct 14 12:00:35 2017 -0400 +++ b/mercurial/wireproto.py Sat Oct 14 12:02:15 2017 -0400 @@ -112,7 +112,7 @@ for command, args, opts, finalfuture in self.calls: mtd = getattr(self._remote, command) - batchable = mtd.batchable(mtd.im_self, *args, **opts) + batchable = mtd.batchable(mtd.__self__, *args, **opts) commandargs, fremote = next(batchable) assert fremote