Skip to content

Commit c1ebe6a

Browse files
miss-islingtonMaT1g3R
authored andcommitted
Add docstring for shlex.split (GH-16740) (GH-17013)
(cherry picked from commit 65c7382) Co-authored-by: MaT1g3R <[email protected]>
1 parent 2ed52b8 commit c1ebe6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/shlex.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def __next__(self):
303303
return token
304304

305305
def split(s, comments=False, posix=True):
306+
"""Split the string *s* using shell-like syntax."""
306307
lex = shlex(s, posix=posix)
307308
lex.whitespace_split = True
308309
if not comments:

0 commit comments

Comments
 (0)