commit | fd16fcaf6b0cb7f54f8cc659e943dd6578e81e86 | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Tue Aug 09 14:57:03 2016 +0100 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Tue Aug 09 14:57:03 2016 +0100 |
tree | 811d9c854ac6e4ed5ba1a48549e4177ba906b5e0 | |
parent | e1f3afbde2b078598ac6db4ba0d946f289000cc9 [diff] [blame] |
Issue #21999: Handled empty strings correctly when in POSIX mode.
diff --git a/Lib/shlex.py b/Lib/shlex.py index e7c8acc..7bef0dd 100644 --- a/Lib/shlex.py +++ b/Lib/shlex.py
@@ -230,7 +230,7 @@ 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