diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-15 16:00:13 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-15 16:00:13 (GMT) |
commit | 12fe4f34249fd1c7247547d1e3225381d7b7e93a (patch) | |
tree | cff5182fac5fdf04b753171c3c6f1172c7325191 /abs/core/func/func_ssl_patch | |
parent | d82e5f3f0c6a98e021472fb94b153cb4350f6a1f (diff) | |
download | linhes_pkgbuild-12fe4f34249fd1c7247547d1e3225381d7b7e93a.zip linhes_pkgbuild-12fe4f34249fd1c7247547d1e3225381d7b7e93a.tar.gz linhes_pkgbuild-12fe4f34249fd1c7247547d1e3225381d7b7e93a.tar.bz2 |
func: fixed for python 2.7 updated msg.py to use msg_daemon
Diffstat (limited to 'abs/core/func/func_ssl_patch')
-rw-r--r-- | abs/core/func/func_ssl_patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/func/func_ssl_patch b/abs/core/func/func_ssl_patch new file mode 100644 index 0000000..cccfe4a --- /dev/null +++ b/abs/core/func/func_ssl_patch @@ -0,0 +1,12 @@ +--- a/func/overlord/sslclient.py ++++ b/func/overlord/sslclient.py +@@ -23,7 +23,11 @@ class SSL_Transport(xmlrpclib.Transport): + # Yay for Python 2.2 + pass + _host, _port = urllib.splitport(host) +- return SSLCommon.HTTPS(_host, int(_port), ssl_context=self.ssl_ctx, timeout=self._timeout) ++ if hasattr(xmlrpclib.Transport, 'single_request'): ++ cnx_class = SSLCommon.HTTPSConnection ++ else: ++ cnx_class = SSLCommon.HTTPS ++ return cnx_class(_host, int(_port), ssl_context=self.ssl_ctx, timeout=self._timeout) |