mercurial/templateutil.py
changeset 50607 a6a17f799839
parent 50565 82ef5410f2aa
child 50608 832df74a488f
--- a/mercurial/templateutil.py	Thu Feb 02 17:37:11 2023 +0100
+++ b/mercurial/templateutil.py	Thu Feb 02 17:37:25 2023 +0100
@@ -281,7 +281,7 @@
 
     def getmember(self, context, mapping, key):
         # TODO: maybe split hybrid list/dict types?
-        if not util.safehasattr(self._values, b'get'):
+        if not util.safehasattr(self._values, 'get'):
             raise error.ParseError(_(b'not a dictionary'))
         key = unwrapastype(context, mapping, key, self._keytype)
         return self._wrapvalue(key, self._values.get(key))