commit | c90bc7599441632a0b6d0b9bfc92563fe7e19104 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Thu May 24 16:49:29 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Thu May 24 16:49:29 2007 +0000 |
tree | d2e49ede7d849f820c2bb2b6955891b3f1410387 | |
parent | df25efeae931409fa45ed034337bd81396d19ce0 [diff] |
shlex.split() now has an optional "posix" parameter.
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 @@ 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 = ''