From e6c03033afc58804cfdb143bef67e9cd37e25507 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 12 Apr 2008 22:24:04 +0000 Subject: [PATCH] socket.error inherits from IOError, it no longer needs listing in the all_errors tuple. --- Lib/ftplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 3a9f99492e6..a915b2d31ef 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -65,7 +65,7 @@ class error_proto(Error): pass # response does not begin with [1-5] # All exceptions (hopefully) that may be raised here and that aren't # (always) programming errors on our side -all_errors = (Error, socket.error, IOError, EOFError) +all_errors = (Error, IOError, EOFError) # Line terminators (we always output CRLF, but accept any of CRLF, CR, LF)