mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-91217: deprecate nntplib (GH-91543)
This commit is contained in:
parent
ea2ae02607
commit
c9e231de85
5 changed files with 9 additions and 4 deletions
|
@ -68,6 +68,7 @@ import socket
|
|||
import collections
|
||||
import datetime
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
try:
|
||||
import ssl
|
||||
|
@ -85,6 +86,8 @@ __all__ = ["NNTP",
|
|||
"decode_header",
|
||||
]
|
||||
|
||||
warnings._deprecated(__name__, remove=(3, 13))
|
||||
|
||||
# maximal line length when calling readline(). This is to prevent
|
||||
# reading arbitrary length lines. RFC 3977 limits NNTP line length to
|
||||
# 512 characters, including CRLF. We have selected 2048 just to be on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue