Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-auth.py @ 37942: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 | 31c37e703cee |
children | c53f0ead5781 |
line wrap: on
line diff
--- a/tests/test-hgweb-auth.py Thu May 10 21:00:58 2018 +0900 +++ b/tests/test-hgweb-auth.py Thu May 10 21:08:32 2018 +0900 @@ -28,7 +28,7 @@ return ui def test(auth, urls=None): - print('CFG:', pycompat.sysstr(stringutil.pprint(auth))) + print('CFG:', pycompat.sysstr(stringutil.pprint(auth, bprefix=True))) prefixes = set() for k in auth: prefixes.add(k.split('.', 1)[0])