]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Corrected bug in list2cmdline wrt backslashes. Fixes #1083306.
authorPeter Astrand <astrand@lysator.liu.se>
Thu, 3 Mar 2005 21:11:06 +0000 (21:11 +0000)
committerPeter Astrand <astrand@lysator.liu.se>
Thu, 3 Mar 2005 21:11:06 +0000 (21:11 +0000)
Lib/subprocess.py

index 227ee0e998041c6c7273f9e9758591afe3af366b..d115e87cc61a3fc8b3d43c9d9ae2a3e93cee8e8a 100644 (file)
@@ -490,6 +490,7 @@ def list2cmdline(seq):
             result.extend(bs_buf)
 
         if needquote:
+            result.extend(bs_buf)
             result.append('"')
 
     return ''.join(result)