Add docstring for shlex.split (GH-16740) (GH-17012)

(cherry picked from commit 65c7382c47)

Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
This commit is contained in:
Miss Skeleton (bot) 2019-10-31 05:50:32 -07:00 committed by Vinay Sajip
parent f3aa1dc3b3
commit a28cf14dea
1 changed files with 1 additions and 0 deletions

View 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: