diff mercurial/utils/stringutil.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 af83a0ed0afb
children f3033692ccef
line wrap: on
line diff
--- a/mercurial/utils/stringutil.py	Thu May 10 21:00:58 2018 +0900
+++ b/mercurial/utils/stringutil.py	Thu May 10 21:08:32 2018 +0900
@@ -23,7 +23,7 @@
     pycompat,
 )
 
-def pprint(o, bprefix=True):
+def pprint(o, bprefix=False):
     """Pretty print an object."""
     if isinstance(o, bytes):
         if bprefix: