Skip to content

Commit 95ef76f

Browse files
committed
Update nntplib to Python 3.11
1 parent 9953597 commit 95ef76f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/nntplib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
import collections
6969
import datetime
7070
import sys
71+
import warnings
7172

7273
try:
7374
import ssl
@@ -85,6 +86,8 @@
8586
"decode_header",
8687
]
8788

89+
warnings._deprecated(__name__, remove=(3, 13))
90+
8891
# maximal line length when calling readline(). This is to prevent
8992
# reading arbitrary length lines. RFC 3977 limits NNTP line length to
9093
# 512 characters, including CRLF. We have selected 2048 just to be on

0 commit comments

Comments
 (0)