8000 _pformat_subprocess not in 3.1.x, use str instead · sauerburger/matplotlib@0a223fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a223fc

Browse files
committed
_pformat_subprocess not in 3.1.x, use str instead
1 parent 72112c6 commit 0a223fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,13 +2122,13 @@ def _check_and_log_subprocess(command, logger, **kwargs):
21222122
Regardless of the return code, the command is logged at DEBUG level on
21232123
*logger*. In case of success, the output is likewise logged.
21242124
"""
2125-
logger.debug('%s', _pformat_subprocess(command))
2125+
logger.debug('%s', str(command))
21262126
proc = subprocess.run(
21272127
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
21282128
if proc.returncode:
21292129
raise RuntimeError(
21302130
f"The command\n"
2131-
f" {_pformat_subprocess(command)}\n"
2131+
f" {str(command)}\n"
21322132
f"failed and generated the following output:\n"
21332133
f"{proc.stdout.decode('utf-8')}\n"
21342134
f"and the following error:\n"

0 commit comments

Comments
 (0)
0