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

login
register
mail settings
Submitter phabricator
Date Aug. 16, 2017, 3:47 a.m.
Message ID <c129e0e3fb985456055100ca8536b12f@localhost.localdomain>
Download mbox | patch
Permalink /patch/23062/
State Not Applicable
Headers show

Comments

phabricator - Aug. 16, 2017, 3:47 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG38a3767975a7: extensions: if on py3 and propname is a bytestr, convert to sysstr (authored by durin42).

REPOSITORY
  rHG Mercurial

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

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__: