Mercurial > hg
comparison tests/test-minirst.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 | 3d24f708f7b6 |
children | a2a5d4ad5276 |
comparison
equal
deleted
inserted
replaced
37941:af83a0ed0afb | 37942:32bc3815efae |
---|---|
16 | 16 |
17 print("-" * 70) | 17 print("-" * 70) |
18 if type(out) == tuple: | 18 if type(out) == tuple: |
19 print(out[0][:-1].decode('utf8')) | 19 print(out[0][:-1].decode('utf8')) |
20 print("-" * 70) | 20 print("-" * 70) |
21 print(stringutil.pprint(out[1], bprefix=False).decode('utf8')) | 21 print(stringutil.pprint(out[1]).decode('utf8')) |
22 else: | 22 else: |
23 print(out[:-1].decode('utf8')) | 23 print(out[:-1].decode('utf8')) |
24 print("-" * 70) | 24 print("-" * 70) |
25 print() | 25 print() |
26 | 26 |