Mercurial > public > mercurial-scm > hg-stable
diff tests/test-ui-color.py @ 37986:32bc3815efae
stringutil: flip the default of pprint() to bprefix=False
If we use pprint() as a drop-in replacement for repr(), bprefix=False is more
appropriate. Let's make it the default to remove bprefix=False noise.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 10 May 2018 21:08:32 +0900 |
parents | b8c2004a8d2b |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/test-ui-color.py Thu May 10 21:00:58 2018 +0900 +++ b/tests/test-ui-color.py Thu May 10 21:08:32 2018 +0900 @@ -15,7 +15,7 @@ testui.write((b'buffered\n')) testui.warn((b'warning\n')) testui.write_err(b'error\n') -print(stringutil.pprint(testui.popbuffer()).decode('ascii')) +print(stringutil.pprint(testui.popbuffer(), bprefix=True).decode('ascii')) # test dispatch.dispatch with the same ui object hgrc = open(os.environ["HGRCPATH"], 'wb')