diff options
author | Georg Brandl <georg@python.org> | 2007-05-24 16:49:29 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-05-24 16:49:29 (GMT) |
commit | c90bc7599441632a0b6d0b9bfc92563fe7e19104 (patch) | |
tree | d2e49ede7d849f820c2bb2b6955891b3f1410387 /Lib/shlex.py | |
parent | df25efeae931409fa45ed034337bd81396d19ce0 (diff) | |
download | cpython-c90bc7599441632a0b6d0b9bfc92563fe7e19104.zip cpython-c90bc7599441632a0b6d0b9bfc92563fe7e19104.tar.gz cpython-c90bc7599441632a0b6d0b9bfc92563fe7e19104.tar.bz2 |
shlex.split() now has an optional "posix" parameter.
Diffstat (limited to 'Lib/shlex.py')
-rw-r--r-- | Lib/shlex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py index 6632b87..fa18bb9 100644 --- a/Lib/shlex.py +++ b/Lib/shlex.py @@ -271,8 +271,8 @@ class shlex: raise StopIteration return token -def split(s, comments=False): - lex = shlex(s, posix=True) +def split(s, comments=False, posix=True): + lex = shlex(s, posix) lex.whitespace_split = True if not comments: lex.commenters = '' |