gh-91217: deprecate telnetlib (GH-91958)

This commit is contained in:
Brett Cannon 2022-04-26 10:45:08 -07:00 committed by GitHub
parent 4153f2cbcb
commit 1af871eeee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View file

@ -1,15 +1,16 @@
import socket
import selectors
import telnetlib
import threading
import contextlib
from test import support
from test.support import socket_helper
from test.support import socket_helper, warnings_helper
import unittest
support.requires_working_socket(module=True)
telnetlib = warnings_helper.import_deprecated('telnetlib')
HOST = socket_helper.HOST
def server(evt, serv):