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
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
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:
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,
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).