Mercurial > hg
comparison mercurial/peer.py @ 34693:56bb07a0b75c
python3: move from using func_name to __name__
Previously reviewed as D964, but required some fixups and therefore
seems to need a new revision.
Differential Revision: https://phab.mercurial-scm.org/D1065
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 05 Oct 2017 14:15:05 -0400 |
parents | dedab036215d |
children | a652b7763f66 |
comparison
equal
deleted
inserted
replaced
34692:4c322b95a6ab | 34693:56bb07a0b75c |
---|---|
88 batchable = f(*args, **opts) | 88 batchable = f(*args, **opts) |
89 encargsorres, encresref = next(batchable) | 89 encargsorres, encresref = next(batchable) |
90 if not encresref: | 90 if not encresref: |
91 return encargsorres # a local result in this case | 91 return encargsorres # a local result in this case |
92 self = args[0] | 92 self = args[0] |
93 encresref.set(self._submitone(f.func_name, encargsorres)) | 93 encresref.set(self._submitone(f.__name__, encargsorres)) |
94 return next(batchable) | 94 return next(batchable) |
95 setattr(plain, 'batchable', f) | 95 setattr(plain, 'batchable', f) |
96 return plain | 96 return plain |