Mercurial > hg
changeset 33836:38a3767975a7
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 25 Jul 2017 22:49:43 -0400 |
parents | 057d31ceace3 |
children | 0646608368a9 |
files | mercurial/extensions.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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__: