summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc/client.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-25 12:13:50 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-25 12:13:50 (GMT)
commit6e132254a911cf32fe7a8b2f72c163afbd99c14a (patch)
tree98605f0afb36cfb694c8a62e4c0a8777a8462c71 /Lib/xmlrpc/client.py
parentf799ca82a068a2cc86e249a8bad377e5d3fa9dd9 (diff)
parenteae3336e425a718d6c17ee1247236a62080bac7f (diff)
downloadcpython-6e132254a911cf32fe7a8b2f72c163afbd99c14a.zip
cpython-6e132254a911cf32fe7a8b2f72c163afbd99c14a.tar.gz
cpython-6e132254a911cf32fe7a8b2f72c163afbd99c14a.tar.bz2
Issue #26402: Merge XML-RPC client fix from 3.5
Diffstat (limited to 'Lib/xmlrpc/client.py')
-rw-r--r--Lib/xmlrpc/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index 07a4f03..4d994d7 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -1129,13 +1129,13 @@ class Transport:
for i in (0, 1):
try:
return self.single_request(host, handler, request_body, verbose)
+ except http.client.RemoteDisconnected:
+ if i:
+ raise
except OSError as e:
if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED,
errno.EPIPE):
raise
- except http.client.RemoteDisconnected:
- if i:
- raise
def single_request(self, host, handler, request_body, verbose=False):
# issue XML-RPC request