mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Bug #1357915: allow all sequence types for shell arguments in
subprocess.
This commit is contained in:
parent
fe9c71bcd3
commit
6c0e1e8673
1 changed files with 2 additions and 0 deletions
|
@ -965,6 +965,8 @@ class Popen(object):
|
|||
|
||||
if isinstance(args, types.StringTypes):
|
||||
args = [args]
|
||||
else:
|
||||
args = list(args)
|
||||
|
||||
if shell:
|
||||
args = ["/bin/sh", "-c"] + args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue