[Python-checkins] Add docstring for shlex.split (GH-16740)
Vinay Sajip
webhook-mailer at python.org
Thu Oct 31 06:23:24 EDT 2019
https://github.com/python/cpython/commit/65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2
commit: 65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2
branch: master
author: MaT1g3R <peijun.ma at protonmail.com>
committer: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: 2019-10-31T10:23:20Z
summary:
Add docstring for shlex.split (GH-16740)
files:
M Lib/shlex.py
diff --git a/Lib/shlex.py b/Lib/shlex.py
index ae0f5ddec1871..c817274583135 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -303,6 +303,7 @@ def __next__(self):
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:
More information about the Python-checkins
mailing list