diff 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
line wrap: on
line diff
--- a/mercurial/peer.py	Sat Oct 14 01:20:12 2017 -0400
+++ b/mercurial/peer.py	Thu Oct 05 14:15:05 2017 -0400
@@ -90,7 +90,7 @@
         if not encresref:
             return encargsorres # a local result in this case
         self = args[0]
-        encresref.set(self._submitone(f.func_name, encargsorres))
+        encresref.set(self._submitone(f.__name__, encargsorres))
         return next(batchable)
     setattr(plain, 'batchable', f)
     return plain