comparison hgext/beautifygraph.py @ 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 e7aa113b14f7
children de3a9d7ec1c2
comparison
equal deleted inserted replaced
39052:38409be2f521 39053:836433f3bdd6
80 def extsetup(ui): 80 def extsetup(ui):
81 if encoding.encoding != 'UTF-8': 81 if encoding.encoding != 'UTF-8':
82 ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n')) 82 ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n'))
83 return 83 return
84 84
85 if 'A' in encoding._wide: 85 if r'A' in encoding._wide:
86 ui.warn(_('beautifygraph: unsupported terminal settings, ' 86 ui.warn(_('beautifygraph: unsupported terminal settings, '
87 'monospace narrow text required\n')) 87 'monospace narrow text required\n'))
88 return 88 return
89 89
90 if ui.plain('graph'): 90 if ui.plain('graph'):