extensions: if on py3 and propname is a bytestr, convert to sysstr
authorAugie Fackler <augie@google.com>
Tue, 25 Jul 2017 22:49:43 -0400
changeset 33836 38a3767975a7
parent 33835 057d31ceace3
child 33837 0646608368a9
extensions: if on py3 and propname is a bytestr, convert to sysstr Property names are unicodes on Python 3. Differential Revision: https://phab.mercurial-scm.org/D296
mercurial/extensions.py
--- a/mercurial/extensions.py	Sat Aug 12 04:47:40 2017 +0530
+++ b/mercurial/extensions.py	Tue Jul 25 22:49:43 2017 -0400
@@ -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__: