Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Lib/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __init__(
width = shutil.get_terminal_size().columns
width -= 2

self._set_color(color)
self._color = color
self._prog = prog
self._indent_increment = indent_increment
self._max_help_position = min(max_help_position,
Expand Down
1 change: 1 addition & 0 deletions Misc/NEWS.d/next/gh-141571.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix redundant early _set_color() call in argparse.HelpFormatter to avoid double color initialization.
Loading