summaryrefslogtreecommitdiff
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-09-11 09:54:07 -0600
committerBenjamin Peterson <benjamin@python.org>2018-09-11 08:54:07 -0700
commit73870bfeb9cf350d84ee88bd25430c104b3c6191 (patch)
tree53529cb3a6e700e88a61a65f11d2db6f4d92e9df /Lib/subprocess.py
parent3102e24d83315eee42a94c460956fbcb92ac510f (diff)
downloadcpython-git-73870bfeb9cf350d84ee88bd25430c104b3c6191.tar.gz
closes bpo-32490: Fix filename duplication in subprocess exception message. (GH-9163)
8621bb5d93239316f97281826461b85072ff6db7 sets the filename in directly in the FileNotFoundError, so we may revert the earlier fix 5f780400572508a8179de6a6c13b58b7be417ef5.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 1e04d5e570..c827113a93 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1512,8 +1512,6 @@ class Popen(object):
err_filename = orig_executable
if errno_num != 0:
err_msg = os.strerror(errno_num)
- if errno_num == errno.ENOENT:
- err_msg += ': ' + repr(err_filename)
raise child_exception_type(errno_num, err_msg, err_filename)
raise child_exception_type(err_msg)