D633: wrapcommand: use functools.partial
quark (Jun Wu)
phabricator at mercurial-scm.org
Thu Sep 7 18:08:42 EDT 2017
quark updated this revision to Diff 1679.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D633?vs=1620&id=1679
REVISION DETAIL
https://phab.mercurial-scm.org/D633
AFFECTED FILES
mercurial/extensions.py
CHANGE DETAILS
diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -377,7 +377,8 @@
break
origfn = entry[0]
- wrap = bind(util.checksignature(wrapper), util.checksignature(origfn))
+ wrap = functools.partial(util.checksignature(wrapper),
+ util.checksignature(origfn))
_updatewrapper(wrap, origfn, wrapper)
if docstring is not None:
wrap.__doc__ += docstring
To: quark, #hg-reviewers, phillco
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list