summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpclib.py
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-19 10:49:11 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-19 10:49:11 (GMT)
commit9604286ee129357d59522a2a1e95b4e0668c85cd (patch)
treec5eca0a84c5297e80039c5390904c2b3b7a675ab /Lib/xmlrpclib.py
parentfaa54a392951468090f0095ffa927b16fcb20ca4 (diff)
downloadcpython-9604286ee129357d59522a2a1e95b4e0668c85cd.zip
cpython-9604286ee129357d59522a2a1e95b4e0668c85cd.tar.gz
cpython-9604286ee129357d59522a2a1e95b4e0668c85cd.tar.bz2
Fix xmlrpc unittest. While it now passes on Linux, it still fails
on FreeBSD due to the difference of socket blocking mode inheritance.
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r--Lib/xmlrpclib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index 2cb4bf5..2da17c4 100644
--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -1117,8 +1117,8 @@ class Transport:
if resp.status != 200:
raise ProtocolError(
host + handler,
- errcode, errmsg,
- headers
+ resp.status, resp.reason,
+ resp.getheaders()
)
self.verbose = verbose