Skip to content

Commit 9bbcfcd

Browse files
committed
Do not quote : after all, it is far too common and not always treated specially
1 parent 51b00f6 commit 9bbcfcd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def list2cmdline(seq):
618618
if result:
619619
result.append(' ')
620620

621-
needquote = not arg or not set(" \t:&<>^|").isdisjoint(arg)
621+
needquote = not arg or not set(" \t&<>^|").isdisjoint(arg)
622622
if needquote:
623623
result.append('"')
624624

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
In addition to space, tab, and empty string, quote arguments containing
2-
``:&<>^|`` on Windows. Patch by John Keith Hohm.
2+
``&<>^|`` on Windows. Patch by John Keith Hohm.

0 commit comments

Comments
 (0)