mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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 os
|
||||||
import sys
|
import sys
|
||||||
|
import socket
|
||||||
# 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
|
|
||||||
from socket import _GLOBAL_DEFAULT_TIMEOUT
|
from socket import _GLOBAL_DEFAULT_TIMEOUT
|
||||||
|
|
||||||
__all__ = ["FTP","Netrc"]
|
__all__ = ["FTP","Netrc"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue