Patchwork D296: extensions: if on py3 and propname is a bytestr, convert to sysstr

login
register
mail settings
Submitter phabricator
Date Aug. 15, 2017, 8:18 p.m.
Message ID <c11089c19994e1303d45689e9fd320e5@localhost.localdomain>
Download mbox | patch
Permalink /patch/23040/
State Not Applicable
Headers show

Comments

phabricator - Aug. 15, 2017, 8:18 p.m.
durin42 updated this revision to Diff 945.
durin42 marked 2 inline comments as done.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D296?vs=799&id=945

REVISION DETAIL
  https://phab.mercurial-scm.org/D296

AFFECTED FILES
  mercurial/extensions.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel

Patch

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -384,6 +384,7 @@ 
 
     These can't be wrapped using the normal wrapfunction.
     """
+    propname = pycompat.sysstr(propname)
     assert callable(wrapper)
     for currcls in cls.__mro__:
         if propname in currcls.__dict__: