mirror of
https://github.com/python/cpython.git
synced 2025-11-12 03:22:06 +00:00
Revert r60115
This revision introduced quoting for strings containing | based on a misunderstanding of the commonly used quoting rules used on Windows. | is interpreted by cmd.exe, not by the MS C runtime argv initializer. It only needs to be quoted if it is part of an argument passed through cmd.exe. See issue1300, issue7839, and issue8972.
This commit is contained in:
parent
a37b7af4d7
commit
b33f0c1ccd
2 changed files with 3 additions and 5 deletions
|
|
@ -486,8 +486,6 @@ def test_list2cmdline(self):
|
|||
'"a\\\\b\\ c" d e')
|
||||
self.assertEqual(subprocess.list2cmdline(['ab', '']),
|
||||
'ab ""')
|
||||
self.assertEqual(subprocess.list2cmdline(['echo', 'foo|bar']),
|
||||
'echo "foo|bar"')
|
||||
|
||||
|
||||
def test_poll(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue