mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Add docstring for shlex.split (GH-16740)
This commit is contained in:
parent
b32cb97bce
commit
65c7382c47
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue