# HG changeset patch # User Augie Fackler # Date 1501037383 14400 # Node ID 38a3767975a78436fddc11a64b6e6efb09dc0a0e # Parent 057d31ceace3d65b73a7b9785188d355377a2790 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 diff -r 057d31ceace3 -r 38a3767975a7 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__: