D4244: stringutil: have buildrepr delegate to pprint for unknown types

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Aug 10 08:25:50 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG38409be2f521: stringutil: have buildrepr delegate to pprint for unknown types (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4244?vs=10278&id=10297

REVISION DETAIL
  https://phab.mercurial-scm.org/D4244

AFFECTED FILES
  mercurial/utils/stringutil.py

CHANGE DETAILS

diff --git a/mercurial/utils/stringutil.py b/mercurial/utils/stringutil.py
--- a/mercurial/utils/stringutil.py
+++ b/mercurial/utils/stringutil.py
@@ -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"""



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list