Mercurial > public > mercurial-scm > hg
comparison mercurial/wireproto.py @ 34726:daf12f69699f
python3: replace im_{self,func} with __{self,func}__ globally
These new names are portable back to Python 2.6.
Differential Revision: https://phab.mercurial-scm.org/D1091
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 14 Oct 2017 12:02:15 -0400 |
parents | 5e61cd5fb0fc |
children | 6f532c1a4af0 |
comparison
equal
deleted
inserted
replaced
34725:a288712d86d5 | 34726:daf12f69699f |
---|---|
110 # future). | 110 # future). |
111 results = [] | 111 results = [] |
112 | 112 |
113 for command, args, opts, finalfuture in self.calls: | 113 for command, args, opts, finalfuture in self.calls: |
114 mtd = getattr(self._remote, command) | 114 mtd = getattr(self._remote, command) |
115 batchable = mtd.batchable(mtd.im_self, *args, **opts) | 115 batchable = mtd.batchable(mtd.__self__, *args, **opts) |
116 | 116 |
117 commandargs, fremote = next(batchable) | 117 commandargs, fremote = next(batchable) |
118 assert fremote | 118 assert fremote |
119 requests.append((command, commandargs)) | 119 requests.append((command, commandargs)) |
120 results.append((command, finalfuture, batchable, fremote)) | 120 results.append((command, finalfuture, batchable, fremote)) |