Commits

Anonymous committed 9805d55

Fall back to using installed socks.py if local one is not found.

Reviewed in http://codereview.appspot.com/5485050/

Comments (0)

Files changed (1)

python2/httplib2/__init__.py

 try:
     from httplib2 import socks
 except ImportError:
-    socks = None
+    try:
+        import socks
+    except ImportError:
+        socks = None
 
 # Build the appropriate socket wrapper for ssl
 try: