diff options
Diffstat (limited to 'python2')
| -rw-r--r-- | python2/httplib2/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index e2d8517..7dfd38c 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -58,7 +58,10 @@ import socket try: from httplib2 import socks except ImportError: - socks = None + try: + import socks + except ImportError: + socks = None # Build the appropriate socket wrapper for ssl try: |
