# HG changeset patch # User Augie Fackler # Date 2018-02-26 03:28:52 # Node ID 75c76cee1b1b61e7636fc86373a921d3574a0755 # Parent d26b0bedfaa47c19bd2ad52e4d08b6e2d1d535cf commitextras: fix on Python 3 by using sysstrs for __dict__ ops I'm dubious of the __dict__ shenanigans in use here, but lack the enthusiasm for figuring out why that was done right now. # skip-blame just some r prefixes Differential Revision: https://phab.mercurial-scm.org/D2435 diff --git a/hgext/commitextras.py b/hgext/commitextras.py --- a/hgext/commitextras.py +++ b/hgext/commitextras.py @@ -70,7 +70,7 @@ def _commit(orig, ui, repo, *pats, **opt # This __dict__ logic is needed because the normal # extension.wrapfunction doesn't seem to work. - repo.__dict__['commit'] = _wrappedcommit + repo.__dict__[r'commit'] = _wrappedcommit return orig(ui, repo, *pats, **opts) finally: - del repo.__dict__['commit'] + del repo.__dict__[r'commit']