]> granicus.if.org Git - python/commitdiff
Bug #1357915: allow all sequence types for shell arguments in
authorGeorg Brandl <georg@python.org>
Sun, 29 Oct 2006 09:05:08 +0000 (09:05 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 29 Oct 2006 09:05:08 +0000 (09:05 +0000)
subprocess.
 (backport from rev. 52522)

Lib/subprocess.py

index 7c229dc785eb9bba379b725f4f701e5af1db1e77..5d79ea61aaa6acdff1b26f92dd9302c448bbf6cb 100644 (file)
@@ -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