[Yum-devel] [UG] python 2.2 and TimeoutError
Pekka Pessi
Pekka.Pessi at nokia.com
Tue Jul 12 00:24:26 UTC 2005
Hello all,
urlgrabber fails to produce any meaningful diagnostics when a network
error occurs on systems with python 2.2 (or earlier). This is because
TimeoutError is None, which is not a valid argument to isinstance(), for
instance.
A patch is attached.
--Pekka
diff -u grabber.py.orig grabber.py
--- grabber.py.orig 2005-01-25 10:08:15.000000000 +0200
+++ grabber.py 2005-07-12 03:16:28.000000000 +0300
@@ -339,7 +339,8 @@
TimeoutError = socket.timeout
have_socket_timeout = True
except AttributeError:
- TimeoutError = None
+ class TimeoutError:
+ pass
have_socket_timeout = False
class URLGrabError(IOError):
More information about the Yum-devel
mailing list