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

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

index ae0f5ddec18716facde32ff586a141a5a7767a2f..c817274583135a3a64711cd38801276fe395a2c7 100644 (file)
@@ -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: