From 95ef76f7a0c7f51377c6074632e460952fd047e2 Mon Sep 17 00:00:00 2001 From: DimitrisJim Date: Wed, 14 Jun 2023 00:45:43 +0300 Subject: [PATCH] Update nntplib to Python 3.11 --- Lib/nntplib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/nntplib.py b/Lib/nntplib.py index f6e746e7c..dddea0599 100644 --- a/Lib/nntplib.py +++ b/Lib/nntplib.py @@ -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