]> granicus.if.org Git - python/commitdiff
socket.error inherits from IOError, it no longer needs listing in
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 12 Apr 2008 22:24:04 +0000 (22:24 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 12 Apr 2008 22:24:04 +0000 (22:24 +0000)
the all_errors tuple.

Lib/ftplib.py

index 3a9f99492e65de95d2dd86a4822f02f53af927fc..a915b2d31ef3ffe585b08e9862aad45d31624674 100644 (file)
@@ -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)