Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix underscore_numbers in pprint.pprint().
  • Loading branch information
ericvsmith committed Oct 21, 2021
commit fd54955131e86b31e7b977f148f8071479165cbe
3 changes: 2 additions & 1 deletion Lib/pprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, *,
Expand Down