diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-09 15:04:49 +0100 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-08-09 15:04:49 +0100 |
| commit | 085e806798f4f70e70a9c8cba31f240d8fd668b3 (patch) | |
| tree | 66ae2b4de160d560b5fab3a93a2e05e2d2df2a25 /Lib/shlex.py | |
| parent | f68afd8544796e23115a6f25b008c153a1414aad (diff) | |
| download | cpython-git-085e806798f4f70e70a9c8cba31f240d8fd668b3.tar.gz | |
Closes #21999: Handled empty strings correctly when in POSIX mode.
Diffstat (limited to 'Lib/shlex.py')
| -rw-r--r-- | Lib/shlex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py index f08391800b..ecd2efd022 100644 --- a/Lib/shlex.py +++ b/Lib/shlex.py @@ -224,7 +224,7 @@ class shlex: if self.debug >= 2: print("shlex: I see punctuation in word state") self.state = ' ' - if self.token: + if self.token or (self.posix and quoted): break # emit current token else: continue |
