Bug #1357915: allow all sequence types for shell arguments in

subprocess.
 (backport from rev. 52522)
This commit is contained in:
Georg Brandl 2006-10-29 09:05:08 +00:00
parent 2a5a3027f2
commit 0d3de7612c
1 changed files with 2 additions and 0 deletions

View File

@ -965,6 +965,8 @@ class Popen(object):
if isinstance(args, types.StringTypes): if isinstance(args, types.StringTypes):
args = [args] args = [args]
else:
args = list(args)
if shell: if shell:
args = ["/bin/sh", "-c"] + args args = ["/bin/sh", "-c"] + args