mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #8513: On UNIX, subprocess supports bytes command string.
This commit is contained in:
parent
8370bb9528
commit
7b3b20ad29
3 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue