diff options
Diffstat (limited to 'python2/httplib2/__init__.py')
-rw-r--r-- | python2/httplib2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 1e979d6..64f2e17 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -63,7 +63,7 @@ except ImportError: try: import ssl # python 2.6 _ssl_wrap_socket = ssl.wrap_socket -except ImportError: +except (AttributeError, ImportError): def _ssl_wrap_socket(sock, key_file, cert_file): ssl_sock = socket.ssl(sock, key_file, cert_file) return httplib.FakeSocket(sock, ssl_sock) |