updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / func / python_27.patch
blobf135e67669207330efc19eeca41875856577916c
1 --- func-0.27/func/overlord/sslclient.py
2 +++ func-0.27/func/overlord/sslclient.py
3 @@ -23,7 +23,11 @@
4 # Yay for Python 2.2
5 pass
6 _host, _port = urllib.splitport(host)
7 - return SSLCommon.HTTPS(_host, int(_port), ssl_context=self.ssl_ctx, timeout=self._timeout)
8 + if hasattr(xmlrpclib.Transport, 'single_request'):
9 + cnx_class = SSLCommon.HTTPSConnection
10 + else:
11 + cnx_class = SSLCommon.HTTPS
12 + return cnx_class(_host, int(_port), ssl_context=self.ssl_ctx, timeout=self._timeout)
15 class SSLXMLRPCServerProxy(xmlrpclib.ServerProxy):