# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1470249939 -19800 # Node ID 2f64e5a6efb873b6f0143a4b9c413b9cb8de21fb # Parent f2846d54664567083fdd8e400b8021e09b498c48 py3: use unicode literals in changelog.py collections.namedtuple type and field names must be str in Python 3. Our custom module importer was rewriting them to bytes literals, making this fail. In addition, __slots__ values must also be unicode. diff -r f2846d546645 -r 2f64e5a6efb8 mercurial/changelog.py --- a/mercurial/changelog.py Mon Jul 25 15:10:52 2016 +0200 +++ b/mercurial/changelog.py Thu Aug 04 00:15:39 2016 +0530 @@ -138,9 +138,10 @@ return appender(opener, name, mode, buf) return _delay -_changelogrevision = collections.namedtuple('changelogrevision', - ('manifest', 'user', 'date', - 'files', 'description', 'extra')) +_changelogrevision = collections.namedtuple(u'changelogrevision', + (u'manifest', u'user', u'date', + u'files', u'description', + u'extra')) class changelogrevision(object): """Holds results of a parsed changelog revision. @@ -151,8 +152,8 @@ """ __slots__ = ( - '_offsets', - '_text', + u'_offsets', + u'_text', ) def __new__(cls, text):