mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
remove obsolete 'import SOCKS' statement
This commit is contained in:
@@ -38,13 +38,7 @@ python ftplib.py -d localhost -l -p -l
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Import SOCKS module if it exists, else standard socket module socket
|
||||
try:
|
||||
import SOCKS; socket = SOCKS; del SOCKS # import SOCKS as socket
|
||||
from socket import getfqdn; socket.getfqdn = getfqdn; del getfqdn
|
||||
except ImportError:
|
||||
import socket
|
||||
import socket
|
||||
from socket import _GLOBAL_DEFAULT_TIMEOUT
|
||||
|
||||
__all__ = ["FTP","Netrc"]
|
||||
|
||||
Reference in New Issue
Block a user