D2987: stringutil: add function to pretty print an object

2018-04-03 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG2f859ad7ed8c: stringutil: add function to pretty print an object (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D2987: stringutil: add function to pretty print an object

2018-04-03 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > indygreg wrote in stringutil.py:39 > Because of differences with `b''` in Python 3 :/  REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2987 To: indygreg, #hg-reviewers Cc: durin42, mercurial-devel

D2987: stringutil: add function to pretty print an object

2018-04-03 Thread indygreg (Gregory Szorc)
indygreg added inline comments. INLINE COMMENTS > durin42 wrote in stringutil.py:39 > Why this instead of pprint.pformat? Because of differences with `b''` in Python 3 :/ REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2987 To: indygreg, #hg-reviewers Cc:

D2987: stringutil: add function to pretty print an object

2018-04-03 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > stringutil.py:39 > > +def pprint(o): > +"""Pretty print an object.""" Why this instead of pprint.pformat? REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2987 To: indygreg, #hg-reviewers Cc: durin42,

D2987: stringutil: add function to pretty print an object

2018-03-30 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This is inspired by the pprint() module/function (which we can't use because the output is different on Python 2 and 3 - namely the use of b'' literals).