fastannotate: use sysstr to check for attribute presence
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 31 Aug 2023 01:21:57 +0200
changeset 50918 d97227f42558
parent 50917 1a242d4d2ac4
child 50919 b3174be5e7f7
fastannotate: use sysstr to check for attribute presence We do not need bytes here.
hgext/fastannotate/context.py
--- a/hgext/fastannotate/context.py	Thu Aug 31 01:21:04 2023 +0200
+++ b/hgext/fastannotate/context.py	Thu Aug 31 01:21:57 2023 +0200
@@ -324,7 +324,7 @@
                     b'(resolved fctx: %s)\n'
                     % (
                         self.path,
-                        stringutil.pprint(util.safehasattr(revfctx, b'node')),
+                        stringutil.pprint(util.safehasattr(revfctx, 'node')),
                     )
                 )
             return self.annotatedirectly(revfctx, showpath, showlines)