Skip to content

Commit a28cf14

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

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
@@ -302,6 +302,7 @@ def __next__(self):
302302
return token
303303

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

0 commit comments

Comments
 (0)