diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2021-10-21 20:42:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 20:42:55 (GMT) |
commit | 087f089e5e04d5b132ffbff0576667d591f13219 (patch) | |
tree | 0748759e59050093e7c513a006ce917d12a02a21 /Lib/pprint.py | |
parent | 3754f55b36206091eda057202666f7905ab3d0e3 (diff) | |
download | cpython-087f089e5e04d5b132ffbff0576667d591f13219.zip cpython-087f089e5e04d5b132ffbff0576667d591f13219.tar.gz cpython-087f089e5e04d5b132ffbff0576667d591f13219.tar.bz2 |
bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r-- | Lib/pprint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py index 60ce57e..575688d 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -50,7 +50,8 @@ def pprint(object, stream=None, indent=1, width=80, depth=None, *, """Pretty-print a Python object to a stream [default is sys.stdout].""" printer = PrettyPrinter( stream=stream, indent=indent, width=width, depth=depth, - compact=compact, sort_dicts=sort_dicts, underscore_numbers=False) + compact=compact, sort_dicts=sort_dicts, + underscore_numbers=underscore_numbers) printer.pprint(object) def pformat(object, indent=1, width=80, depth=None, *, |