changeset 39052:38409be2f521

stringutil: have buildrepr delegate to pprint for unknown types This stabilizes some revset reprs across Python 2 and 3. Differential Revision: https://phab.mercurial-scm.org/D4244
author Augie Fackler <augie@google.com>
date Fri, 10 Aug 2018 01:42:01 -0400
parents 2aebe138ef6e
children 836433f3bdd6
files mercurial/utils/stringutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/utils/stringutil.py	Fri Aug 10 01:41:31 2018 -0400
+++ b/mercurial/utils/stringutil.py	Fri Aug 10 01:42:01 2018 -0400
@@ -114,7 +114,7 @@
     elif callable(r):
         return r()
     else:
-        return pycompat.byterepr(r)
+        return pprint(r)
 
 def binary(s):
     """return true if a string is binary data"""