]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add docstring for shlex.split (GH-16740)
authorMaT1g3R <peijun.ma@protonmail.com>
Thu, 31 Oct 2019 10:23:20 +0000 (06:23 -0400)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 31 Oct 2019 10:23:20 +0000 (10:23 +0000)
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: