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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c0e1e86733f0c26db2f33534e820e1b7427d274;p=thirdparty%2FPython%2Fcpython.git Bug #1357915: allow all sequence types for shell arguments in subprocess. --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 7c229dc785eb..5d79ea61aaa6 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