mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-139862: Remove color from HelpFormatter (#142274)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
100c726d98
commit
4b14529730
2 changed files with 1 additions and 2 deletions
|
|
@ -166,7 +166,6 @@ def __init__(
|
|||
indent_increment=2,
|
||||
max_help_position=24,
|
||||
width=None,
|
||||
color=True,
|
||||
):
|
||||
# default setting for width
|
||||
if width is None:
|
||||
|
|
@ -174,7 +173,6 @@ def __init__(
|
|||
width = shutil.get_terminal_size().columns
|
||||
width -= 2
|
||||
|
||||
self._set_color(color)
|
||||
self._prog = prog
|
||||
self._indent_increment = indent_increment
|
||||
self._max_help_position = min(max_help_position,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue