]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add docstring for shlex.split (GH-16740) (GH-17012)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 31 Oct 2019 12:50:32 +0000 (05:50 -0700)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 31 Oct 2019 12:50:32 +0000 (12:50 +0000)
(cherry picked from commit 65c7382c47af07aea5c1ce86b76cf7f4b6acaaa2)

Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
Lib/shlex.py

index 195dc12bbce95e290eed5667da88ce8de7181f88..48e31f4799b447c34838a8088f79197186501cc0 100644 (file)
@@ -302,6 +302,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: