comparison tests/test-ui-color.py @ 43080:86e4daa2d54c

cleanup: mark some ui.(status|note|warn|write) calls as not needing i18n These used to be marked with no-op parens, but black removes those now and this is more explicit. # skip-blame: fallout from mass reformatting Differential Revision: https://phab.mercurial-scm.org/D6996
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 10:51:16 -0400
parents 2372284d9457
children 6000f5b25c9b
comparison
equal deleted inserted replaced
43079:5209fc94b982 43080:86e4daa2d54c
8 from mercurial.utils import stringutil 8 from mercurial.utils import stringutil
9 9
10 # ensure errors aren't buffered 10 # ensure errors aren't buffered
11 testui = uimod.ui() 11 testui = uimod.ui()
12 testui.pushbuffer() 12 testui.pushbuffer()
13 testui.write(b'buffered\n') 13 testui.writenoi18n(b'buffered\n')
14 testui.warn(b'warning\n') 14 testui.warnnoi18n(b'warning\n')
15 testui.write_err(b'error\n') 15 testui.write_err(b'error\n')
16 print(stringutil.pprint(testui.popbuffer(), bprefix=True).decode('ascii')) 16 print(stringutil.pprint(testui.popbuffer(), bprefix=True).decode('ascii'))
17 17
18 # test dispatch.dispatch with the same ui object 18 # test dispatch.dispatch with the same ui object
19 hgrc = open(os.environ["HGRCPATH"], 'wb') 19 hgrc = open(os.environ["HGRCPATH"], 'wb')