py3: use stringutil.pprint() to print boolean values
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 20 Sep 2018 18:35:24 +0300
changeset 39744 ce4c29705983
parent 39743 a2bb0ec3b4d4
child 39745 56cb053a71ed
py3: use stringutil.pprint() to print boolean values Differential Revision: https://phab.mercurial-scm.org/D4675
hgext/fastannotate/context.py
--- a/hgext/fastannotate/context.py	Thu Sep 20 18:34:38 2018 +0300
+++ b/hgext/fastannotate/context.py	Thu Sep 20 18:35:24 2018 +0300
@@ -299,7 +299,9 @@
             if self.ui.debugflag:
                 self.ui.debug('fastannotate: %s: using fast path '
                               '(resolved fctx: %s)\n'
-                              % (self.path, util.safehasattr(revfctx, 'node')))
+                              % (self.path,
+                                 stringutil.pprint(util.safehasattr(revfctx,
+                                                                    'node'))))
             return self.annotatedirectly(revfctx, showpath, showlines)
 
         # resolve master