Kaydet (Commit) 29794ecd authored tarafından Peter Astrand's avatar Peter Astrand

Fix for bug #1634343: allow specifying empty arguments on Windows

üst 4347c135
......@@ -499,7 +499,7 @@ def list2cmdline(seq):
if result:
result.append(' ')
needquote = (" " in arg) or ("\t" in arg)
needquote = (" " in arg) or ("\t" in arg) or arg == ""
if needquote:
result.append('"')
......
......@@ -430,6 +430,8 @@ class ProcessTestCase(unittest.TestCase):
'"a\\\\b c" d e')
self.assertEqual(subprocess.list2cmdline(['a\\\\b\\ c', 'd', 'e']),
'"a\\\\b\\ c" d e')
self.assertEqual(subprocess.list2cmdline(['ab', '']),
'ab ""')
def test_poll(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment