From 6545ed6e4fd5f31798aaa7789b08ae925203d33e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Giampaolo=20Rodol=C3=A0?= Date: Sat, 21 Aug 2010 20:34:37 +0000 Subject: [PATCH] remove obsolete 'import SOCKS' statement --- Lib/ftplib.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index b593fa1e76..8a097c0365 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -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"] -- 2.40.0