diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-03 12:54:05 +0000 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-03 12:54:05 +0000 |
| commit | ae1258dbf2532a3ccae0fc8ef477521f0a1ff649 (patch) | |
| tree | 03a6d3511521017b53416cc481068405c12578ba /Lib/subprocess.py | |
| parent | 35aca2dc94b129995db292352d7f5e79f05bde0c (diff) | |
| download | cpython-ae1258dbf2532a3ccae0fc8ef477521f0a1ff649.tar.gz | |
Issue #8513: On UNIX, subprocess supports bytes command string.
Diffstat (limited to 'Lib/subprocess.py')
| -rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index c02fb525ec..359dc96701 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) |
