Add docstring for shlex.split (GH-16740) (GH-17013)
(cherry picked from commit 65c7382c47
)
Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
This commit is contained in:
parent
2ed52b86aa
commit
c1ebe6a125
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue