# HG changeset patch # User Pierre-Yves David # Date 1693437717 -7200 # Node ID d97227f42558c0b51eea2003ffa75446bd95ea83 # Parent 1a242d4d2ac4dd389b17769f9737d3dc6705445e fastannotate: use sysstr to check for attribute presence We do not need bytes here. diff -r 1a242d4d2ac4 -r d97227f42558 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)