mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
remove obsolete 'import SOCKS' statement
This commit is contained in:
parent
2d55e2aab3
commit
6545ed6e4f
1 changed files with 1 additions and 7 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue