diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-08-02 21:03:33 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-08-02 21:13:43 -0400 |
| commit | e90b97304d50eb1246197014ca2d794987ce1934 (patch) | |
| tree | 23e9f77cedeeb30cd3765fd1e35862c2eb89cffb /setuptools/_distutils/spawn.py | |
| parent | 9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf (diff) | |
| parent | c397f4c164e0a6f49a1ac3a70f5c80fe05785ed6 (diff) | |
| download | python-setuptools-git-e90b97304d50eb1246197014ca2d794987ce1934.tar.gz | |
Merge https://github.com/pypa/distutils into bugfix/distutils-164
Diffstat (limited to 'setuptools/_distutils/spawn.py')
| -rw-r--r-- | setuptools/_distutils/spawn.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/_distutils/spawn.py b/setuptools/_distutils/spawn.py index db9f08ee..b18ba9db 100644 --- a/setuptools/_distutils/spawn.py +++ b/setuptools/_distutils/spawn.py @@ -60,13 +60,15 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None): # noqa: C901 except OSError as exc: if not DEBUG: cmd = cmd[0] - raise DistutilsExecError("command %r failed: %s" % (cmd, exc.args[-1])) from exc + raise DistutilsExecError( + "command {!r} failed: {}".format(cmd, exc.args[-1]) + ) from exc if exitcode: if not DEBUG: cmd = cmd[0] raise DistutilsExecError( - "command %r failed with exit code %s" % (cmd, exitcode) + "command {!r} failed with exit code {}".format(cmd, exitcode) ) |
