Skip to content

gh-94352: shlex.split() no longer accepts None #94353

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
Jul 4, 2022
Merged

gh-94352: shlex.split() no longer accepts None #94353

merged 1 commit into from
Jul 4, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 27, 2022

shlex.split(): Passing None for s argument now raises an exception.
Read sys.stdin instead.

@vstinner vstinner marked this pull request as ready for review June 27, 2022 22:27
@vstinner
Copy link
Member Author

vstinner commented Jul 4, 2022

I merge my PR. If there are too many affected projects, we have time until Python 3.12 final to decide to postpone this removal. The feature was removed in 3 Python versions (3.9, 3.10, 3.11).

shlex.split(): Passing None for s argument now raises an exception,
rather than reading sys.stdin. The feature was deprecated in Python
3.9.
@vstinner vstinner merged commit fbcee57 into python:main Jul 4, 2022
@vstinner vstinner deleted the shlex branch July 4, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants