From: Kristján Valur Jónsson Date: Fri, 3 Jul 2009 23:29:50 +0000 (+0000) Subject: http://bugs.python.org/issue6267 X-Git-Tag: v2.7a1~839 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5445da6318d35be797e0b52d666aed2382daab1;p=python http://bugs.python.org/issue6267 Incorrect exception handling for xmlrpc client retry --- diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index da3fb5a91c..a712a64453 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -1256,7 +1256,7 @@ class Transport: except socket.error, e: if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED): raise - except http.client.BadStatusLine: #close after we sent request + except httplib.BadStatusLine: #close after we sent request if i: raise