py3: fix type of attribute names forwarded by templatekw._hybrid
authorYuya Nishihara <yuya@tcha.org>
Thu, 01 Mar 2018 08:19:47 -0500
changeset 36501 169ac2bb3c9c
parent 36500 43e108027b0d
child 36502 faaabe0dc4d1
py3: fix type of attribute names forwarded by templatekw._hybrid # skip-blame because just r'' prefixes
mercurial/templatekw.py
--- a/mercurial/templatekw.py	Thu Mar 01 06:47:06 2018 -0500
+++ b/mercurial/templatekw.py	Thu Mar 01 08:19:47 2018 -0500
@@ -64,8 +64,8 @@
     def __iter__(self):
         return iter(self._values)
     def __getattr__(self, name):
-        if name not in ('get', 'items', 'iteritems', 'iterkeys', 'itervalues',
-                        'keys', 'values'):
+        if name not in (r'get', r'items', r'iteritems', r'iterkeys',
+                        r'itervalues', r'keys', r'values'):
             raise AttributeError(name)
         return getattr(self._values, name)