[Python-checkins] r52522 - python/trunk/Lib/subprocess.py

georg.brandl python-checkins at python.org
Sun Oct 29 10:05:05 CET 2006


Author: georg.brandl
Date: Sun Oct 29 10:05:04 2006
New Revision: 52522

Modified:
   python/trunk/Lib/subprocess.py
Log:
Bug #1357915: allow all sequence types for shell arguments in
subprocess.


Modified: python/trunk/Lib/subprocess.py
==============================================================================
--- python/trunk/Lib/subprocess.py	(original)
+++ python/trunk/Lib/subprocess.py	Sun Oct 29 10:05:04 2006
@@ -965,6 +965,8 @@
 
             if isinstance(args, types.StringTypes):
                 args = [args]
+            else:
+                args = list(args)
 
             if shell:
                 args = ["/bin/sh", "-c"] + args


More information about the Python-checkins mailing list