mirror of https://github.com/python/cpython.git
Add docstring for shlex.split (GH-16740)
This commit is contained in:
parent
b32cb97bce
commit
65c7382c47
|
@ -303,6 +303,7 @@ def __next__(self):
|
||||||
return token
|
return token
|
||||||
|
|
||||||
def split(s, comments=False, posix=True):
|
def split(s, comments=False, posix=True):
|
||||||
|
"""Split the string *s* using shell-like syntax."""
|
||||||
lex = shlex(s, posix=posix)
|
lex = shlex(s, posix=posix)
|
||||||
lex.whitespace_split = True
|
lex.whitespace_split = True
|
||||||
if not comments:
|
if not comments:
|
||||||
|
|
Loading…
Reference in New Issue