changeset 50941:d97227f42558

fastannotate: use sysstr to check for attribute presence We do not need bytes here.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 31 Aug 2023 01:21:57 +0200
parents 1a242d4d2ac4
children b3174be5e7f7
files hgext/fastannotate/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)