summaryrefslogtreecommitdiffstats
path: root/Lib/shlex.py
diff options
context:
space:
mode:
authorMaT1g3R <peijun.ma@protonmail.com>2019-10-31 10:23:20 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2019-10-31 10:23:20 (GMT)
commit65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2 (patch)
tree0f3984e79ed320e6e77d26ff8378df450991b301 /Lib/shlex.py
parentb32cb97bce472dad337c6b2f071883f6234e21d8 (diff)
downloadcpython-65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2.zip
cpython-65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2.tar.gz
cpython-65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2.tar.bz2
Add docstring for shlex.split (GH-16740)
Diffstat (limited to 'Lib/shlex.py')
-rw-r--r--Lib/shlex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py
index ae0f5dd..c817274 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -303,6 +303,7 @@ class shlex:
return token
def split(s, comments=False, posix=True):
+ """Split the string *s* using shell-like syntax."""
lex = shlex(s, posix=posix)
lex.whitespace_split = True
if not comments: