changeset 39053:836433f3bdd6

beautifygraph: use sysstr for checking encoding._wide # skip-blame just an r prefix Differential Revision: https://phab.mercurial-scm.org/D4245
author Augie Fackler <augie@google.com>
date Fri, 10 Aug 2018 00:07:45 -0400
parents 38409be2f521
children de3a9d7ec1c2
files hgext/beautifygraph.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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