changeset 36531:169ac2bb3c9c

py3: fix type of attribute names forwarded by templatekw._hybrid # skip-blame because just r'' prefixes
author Yuya Nishihara <yuya@tcha.org>
date Thu, 01 Mar 2018 08:19:47 -0500
parents 43e108027b0d
children faaabe0dc4d1
files mercurial/templatekw.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)