changeset 36419:75c76cee1b1b

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
author Augie Fackler <augie@google.com>
date Sun, 25 Feb 2018 22:28:52 -0500
parents d26b0bedfaa4
children a39126a40be6
files hgext/commitextras.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/commitextras.py	Sun Feb 25 22:06:53 2018 -0500
+++ b/hgext/commitextras.py	Sun Feb 25 22:28:52 2018 -0500
@@ -70,7 +70,7 @@
 
         # 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']