# HG changeset patch # User Pierre-Yves David # Date 2023-08-30 23:21:57 # Node ID d97227f42558c0b51eea2003ffa75446bd95ea83 # Parent 1a242d4d2ac4dd389b17769f9737d3dc6705445e fastannotate: use sysstr to check for attribute presence We do not need bytes here. diff --git a/hgext/fastannotate/context.py b/hgext/fastannotate/context.py --- a/hgext/fastannotate/context.py +++ b/hgext/fastannotate/context.py @@ -324,7 +324,7 @@ class _annotatecontext: 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)