comparison 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
comparison
equal deleted inserted replaced
37941:af83a0ed0afb 37942:32bc3815efae
106 106
107 with clt.commandexecutor() as e: 107 with clt.commandexecutor() as e:
108 fgreet1 = e.callcommand(b'greet', {b'name': b'Fo, =;:<o'}) 108 fgreet1 = e.callcommand(b'greet', {b'name': b'Fo, =;:<o'})
109 fgreet2 = e.callcommand(b'greet', {b'name': b'Bar'}) 109 fgreet2 = e.callcommand(b'greet', {b'name': b'Bar'})
110 110
111 printb(stringutil.pprint([f.result() for f in (fgreet1, fgreet2)])) 111 printb(stringutil.pprint([f.result() for f in (fgreet1, fgreet2)],
112 bprefix=True))