summaryrefslogtreecommitdiffstats
path: root/Lib/shlex.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-05-24 16:49:29 (GMT)
committerGeorg Brandl <georg@python.org>2007-05-24 16:49:29 (GMT)
commitc90bc7599441632a0b6d0b9bfc92563fe7e19104 (patch)
treed2e49ede7d849f820c2bb2b6955891b3f1410387 /Lib/shlex.py
parentdf25efeae931409fa45ed034337bd81396d19ce0 (diff)
downloadcpython-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.py4
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 = ''