From: Georg Brandl Date: Sun, 29 Oct 2006 09:05:08 +0000 (+0000) Subject: Bug #1357915: allow all sequence types for shell arguments in X-Git-Tag: v2.5.1c1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d3de7612cec5b8613142d517c3bc04906433967;p=python Bug #1357915: allow all sequence types for shell arguments in subprocess. (backport from rev. 52522) --- 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