Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d55e2a commit 6545ed6Copy full SHA for 6545ed6
1 file changed
Lib/ftplib.py
@@ -38,13 +38,7 @@
38
39
import os
40
import sys
41
-
42
-# Import SOCKS module if it exists, else standard socket module socket
43
-try:
44
- import SOCKS; socket = SOCKS; del SOCKS # import SOCKS as socket
45
- from socket import getfqdn; socket.getfqdn = getfqdn; del getfqdn
46
-except ImportError:
47
- import socket
+import socket
48
from socket import _GLOBAL_DEFAULT_TIMEOUT
49
50
__all__ = ["FTP","Netrc"]
0 commit comments