summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-29 23:06:06 -0500
committerBenjamin Peterson <benjamin@python.org>2014-11-29 23:06:06 -0500
commit70a2a683281f6cbad0a5c3b945ba72594f928c3f (patch)
tree98f63f876d1ef2330a1d816cf5328a5974904d2e
parent594b6c6b9f649cd71e8b4ec71764c770e02a6e52 (diff)
downloadcpython-70a2a683281f6cbad0a5c3b945ba72594f928c3f.tar.gz
this is why tests are great
-rw-r--r--Lib/xmlrpclib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index f5682c9cf0..5354ec246a 100644
--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -1497,7 +1497,7 @@ class SafeTransport(Transport):
)
else:
chost, self._extra_headers, x509 = self.get_host_info(host)
- self._connection = host, HTTPS(chost, None, context=context, **(x509 or {}))
+ self._connection = host, HTTPS(chost, None, context=self.context, **(x509 or {}))
return self._connection[1]
##