10000 [3.7] Add docstring for shlex.split (GH-16740) by miss-islington · Pull Request #17012 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

[3.7] Add docstring for shlex.split (GH-16740) #17012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
Add docstring for shlex.split (GH-16740)
(cherry picked from commit 65c7382)

Co-authored-by: MaT1g3R <peijun.ma@protonmail.com>
  • Loading branch information
MaT1g3R authored and miss-islington committed Oct 31, 2019
commit fd8eac91ad5e3e73fe795507aaf50da5e0a9f6ab
1 change: 1 addition & 0 deletions Lib/shlex.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def __next__(self):
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:
Expand Down
0