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 7c229dc..5d79ea6 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -965,6 +965,8 @@
 
             if isinstance(args, types.StringTypes):
                 args = [args]
+            else:
+                args = list(args)
 
             if shell:
                 args = ["/bin/sh", "-c"] + args