diff Lib/subprocess.py @ 40619:2df80e716e5c legacy-trunk

Fix for bug #1634343: allow specifying empty arguments on Windows
author Peter Astrand <astrand@lysator.liu.se>
date Sat, 13 Jan 2007 22:35:35 +0000
parents 99093b527c01
children 5dae0d7f683a
line wrap: on
line diff
--- a/Lib/subprocess.py	Sat Jan 13 22:32:21 2007 +0000
+++ b/Lib/subprocess.py	Sat Jan 13 22:35:35 2007 +0000
@@ -499,7 +499,7 @@
         if result:
             result.append(' ')
 
-        needquote = (" " in arg) or ("\t" in arg)
+        needquote = (" " in arg) or ("\t" in arg) or arg == ""
         if needquote:
             result.append('"')