From 6c0e1e86733f0c26db2f33534e820e1b7427d274 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 29 Oct 2006 09:05:04 +0000 Subject: [PATCH] Bug #1357915: allow all sequence types for shell arguments in subprocess. --- Lib/subprocess.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 7c229dc785e..5d79ea61aaa 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