beautifygraph: use sysstr for checking encoding._wide
authorAugie Fackler <augie@google.com>
Fri, 10 Aug 2018 00:07:45 -0400
changeset 39053 836433f3bdd6
parent 39052 38409be2f521
child 39054 de3a9d7ec1c2
beautifygraph: use sysstr for checking encoding._wide # skip-blame just an r prefix Differential Revision: https://phab.mercurial-scm.org/D4245
hgext/beautifygraph.py
--- a/hgext/beautifygraph.py	Fri Aug 10 01:42:01 2018 -0400
+++ b/hgext/beautifygraph.py	Fri Aug 10 00:07:45 2018 -0400
@@ -82,7 +82,7 @@
         ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n'))
         return
 
-    if 'A' in encoding._wide:
+    if r'A' in encoding._wide:
         ui.warn(_('beautifygraph: unsupported terminal settings, '
                   'monospace narrow text required\n'))
         return