mirror of https://github.com/python/cpython
Bug #1357915: allow all sequence types for shell arguments in
subprocess. (backport from rev. 52522)
This commit is contained in:
parent
2a5a3027f2
commit
0d3de7612c
|
@ -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…
Reference in New Issue