[Python-checkins] Add docstring for shlex.split (GH-16740) (GH-17012)

Vinay Sajip webhook-mailer at python.org
Thu Oct 31 08:50:36 EDT 2019


https://github.com/python/cpython/commit/a28cf14deaa3e62c995f119036d2e63346cadbb8
commit: a28cf14deaa3e62c995f119036d2e63346cadbb8
branch: 3.7
author: Miss Skeleton (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: 2019年10月31日T12:50:32Z
summary:
Add docstring for shlex.split (GH-16740) (GH-17012)
(cherry picked from commit 65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2)
Co-authored-by: MaT1g3R <peijun.ma at protonmail.com>
files:
M Lib/shlex.py
diff --git a/Lib/shlex.py b/Lib/shlex.py
index 195dc12bbce95..48e31f4799b44 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -302,6 +302,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

AltStyle によって変換されたページ (->オリジナル) /