summaryrefslogtreecommitdiffstats
path: root/Doc/library/shlex.rst
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-04-01 13:58:55 (GMT)
committerGitHub <noreply@github.com>2020-04-01 13:58:55 (GMT)
commit975ac326ffe265e63a103014fd27e9d098fe7548 (patch)
treeb8a86b68b758d9bf11df94b70735fe5981ed49b3 /Doc/library/shlex.rst
parent7c72383f95b0cdedf390726069428d7b69ed2597 (diff)
downloadcpython-975ac326ffe265e63a103014fd27e9d098fe7548.zip
cpython-975ac326ffe265e63a103014fd27e9d098fe7548.tar.gz
cpython-975ac326ffe265e63a103014fd27e9d098fe7548.tar.bz2
bpo-33262: Deprecate passing None for `s` to shlex.split() (GH-6514)
* bpo-33262: Deprecate passing None for `s` to shlex.split() This reads the string to split from standard input. * Update What's New. * Fix shlex.rst
Diffstat (limited to 'Doc/library/shlex.rst')
-rw-r--r--Doc/library/shlex.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/shlex.rst b/Doc/library/shlex.rst
index adc23da..7f7f0c7 100644
--- a/Doc/library/shlex.rst
+++ b/Doc/library/shlex.rst
@@ -36,6 +36,9 @@ The :mod:`shlex` module defines the following functions:
instance, passing ``None`` for *s* will read the string to split from
standard input.
+ .. deprecated:: 3.9
+ Passing ``None`` for *s* will raise an exception in future Python
+ versions.
.. function:: join(split_command)