commit | 7b3b20ad29be6d77608b4bd9cd09b61b67783bcf | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Mar 03 12:54:05 2011 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Mar 03 12:54:05 2011 +0000 |
tree | 87a6e7e58d31f67e741226aa880043833525b061 | |
parent | 8370bb952809f72b387f11e58aa7b0452e383915 [diff] [blame] |
Issue #8513: On UNIX, subprocess supports bytes command string.
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 @@ restore_signals, start_new_session): """Execute program (POSIX version)""" - if isinstance(args, str): + if isinstance(args, (str, bytes)): args = [args] else: args = list(args)