diff tests/test-wireproto.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 40381a88bab4
children d6569f1e9b37
line wrap: on
line diff
--- a/tests/test-wireproto.py	Thu May 10 21:00:58 2018 +0900
+++ b/tests/test-wireproto.py	Thu May 10 21:08:32 2018 +0900
@@ -108,4 +108,5 @@
     fgreet1 = e.callcommand(b'greet', {b'name': b'Fo, =;:<o'})
     fgreet2 = e.callcommand(b'greet', {b'name': b'Bar'})
 
-printb(stringutil.pprint([f.result() for f in (fgreet1, fgreet2)]))
+printb(stringutil.pprint([f.result() for f in (fgreet1, fgreet2)],
+                         bprefix=True))