From: Georg Brandl Date: Sun, 29 Oct 2006 09:05:04 +0000 (+0000) Subject: Bug #1357915: allow all sequence types for shell arguments in X-Git-Tag: v2.6a1~2494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c0e1e86733f0c26db2f33534e820e1b7427d274;p=python Bug #1357915: allow all sequence types for shell arguments in subprocess. --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 7c229dc785..5d79ea61aa 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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