# HG changeset patch # User Augie Fackler # Date 1536794068 14400 # Node ID f15a587d2dfc91342d9b90ccf273f20b86fe14f4 # Parent 918944f53aac968b96e2118c1376eba659736873 wireprotov1peer: forward __name__ of wrapped method in batchable decorator Not required, but clarifies debugging when the going gets really tough. Differential Revision: https://phab.mercurial-scm.org/D4551 diff -r 918944f53aac -r f15a587d2dfc mercurial/wireprotov1peer.py --- a/mercurial/wireprotov1peer.py Sun Jul 29 21:28:51 2018 +0900 +++ b/mercurial/wireprotov1peer.py Wed Sep 12 19:14:28 2018 -0400 @@ -64,6 +64,7 @@ encresref.set(self._submitone(cmd, encargsorres)) return next(batchable) setattr(plain, 'batchable', f) + setattr(plain, '__name__', f.__name__) return plain class future(object):