diff options
author | Victor Stinner <vstinner@python.org> | 2022-07-04 13:29:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 13:29:19 (GMT) |
commit | fbcee570d1e15e5260a456cb71c8b0897dc76237 (patch) | |
tree | 0f59827fabc49ed3e88724ed3bbcced7ff4fe8f3 /Doc/whatsnew | |
parent | 670f7f10cf9cd7bdde9e62660d85506823f5bf7c (diff) | |
download | cpython-fbcee570d1e15e5260a456cb71c8b0897dc76237.zip cpython-fbcee570d1e15e5260a456cb71c8b0897dc76237.tar.gz cpython-fbcee570d1e15e5260a456cb71c8b0897dc76237.tar.bz2 |
gh-94352: shlex.split() no longer accepts None (#94353)
shlex.split(): Passing None for s argument now raises an exception,
rather than reading sys.stdin. The feature was deprecated in Python
3.9.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 620aa91..ed21aba 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -324,6 +324,11 @@ Changes in the Python API to :term:`filesystem encoding and error handler`. Argument files should be encoded in UTF-8 instead of ANSI Codepage on Windows. +* :func:`shlex.split`: Passing ``None`` for *s* argument now raises an + exception, rather than reading :data:`sys.stdin`. The feature was deprecated + in Python 3.9. + (Contributed by Victor Stinner in :gh:`94352`.) + Build Changes ============= |