[Python-checkins] r52523 - python/branches/release25-maint/Lib/subprocess.py

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


Author: georg.brandl
Date: Sun Oct 29 10:05:08 2006
New Revision: 52523

Modified:
   python/branches/release25-maint/Lib/subprocess.py
Log:
Bug #1357915: allow all sequence types for shell arguments in
subprocess.
 (backport from rev. 52522)

Modified: python/branches/release25-maint/Lib/subprocess.py
==============================================================================
--- python/branches/release25-maint/Lib/subprocess.py	(original)
+++ python/branches/release25-maint/Lib/subprocess.py	Sun Oct 29 10:05:08 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