summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-03 12:54:05 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-03 12:54:05 (GMT)
commit7b3b20ad29be6d77608b4bd9cd09b61b67783bcf (patch)
tree87a6e7e58d31f67e741226aa880043833525b061 /Lib/subprocess.py
parent8370bb952809f72b387f11e58aa7b0452e383915 (diff)
downloadcpython-7b3b20ad29be6d77608b4bd9cd09b61b67783bcf.zip
cpython-7b3b20ad29be6d77608b4bd9cd09b61b67783bcf.tar.gz
cpython-7b3b20ad29be6d77608b4bd9cd09b61b67783bcf.tar.bz2
Issue #8513: On UNIX, subprocess supports bytes command string.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index c02fb52..359dc96 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1125,7 +1125,7 @@ class Popen(object):
restore_signals, start_new_session):
"""Execute program (POSIX version)"""
- if isinstance(args, str):
+ if isinstance(args, (str, bytes)):
args = [args]
else:
args = list(args)