diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2020-01-10 14:34:05 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@python.org> | 2020-01-10 14:34:05 (GMT) |
commit | c39b52f1527868c7ada9385669c38edf98858921 (patch) | |
tree | dff7a3c55d0d8c5f01bcb20bc66fac69aa2cd6dd /Misc | |
parent | 4c53e63cc966f98e141a09bc435b9f9c713b152d (diff) | |
download | cpython-c39b52f1527868c7ada9385669c38edf98858921.zip cpython-c39b52f1527868c7ada9385669c38edf98858921.tar.gz cpython-c39b52f1527868c7ada9385669c38edf98858921.tar.bz2 |
bpo-39259: poplib now rejects timeout = 0 (GH-17912)
poplib.POP3 and poplib.POP3_SSL now raise a ValueError
if the given timeout for their constructor is zero to
prevent the creation of a non-blocking socket.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-01-09-10-58-58.bpo-39259.RmDgCC.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-01-09-10-58-58.bpo-39259.RmDgCC.rst b/Misc/NEWS.d/next/Library/2020-01-09-10-58-58.bpo-39259.RmDgCC.rst new file mode 100644 index 0000000..c7ef8be --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-01-09-10-58-58.bpo-39259.RmDgCC.rst @@ -0,0 +1,3 @@ +:class:`~poplib.POP3` and :class:`~poplib.POP3_SSL` now raise a +:class:`ValueError` if the given timeout for their constructor is zero to +prevent the creation of a non-blocking socket. Patch by Dong-hee Na. |