From patchwork Thu Sep 7 22:08:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D633: wrapcommand: use functools.partial From: phabricator X-Patchwork-Id: 23737 Message-Id: <0f91549879d3354d25bc1021375d4e35@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Thu, 7 Sep 2017 22:08:42 +0000 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 To: quark, #hg-reviewers, phillco Cc: mercurial-devel 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