Fix tweepy.debug() by using six's module helpers.
authorJoshua Roesslein <jroesslein@opengov.com>
Wed, 10 Dec 2014 02:59:49 +0000 (18:59 -0800)
committerJoshua Roesslein <jroesslein@opengov.com>
Wed, 10 Dec 2014 02:59:49 +0000 (18:59 -0800)
tweepy/__init__.py

index a1b2d33c78148d37870d181d911af3134ebbdec7..4be5a5a7af665567b12b80fb1e307593c74b1157 100644 (file)
@@ -21,6 +21,5 @@ from tweepy.cursor import Cursor
 api = API()
 
 def debug(enable=True, level=1):
-    pass
-    # import http.client
-    # http.client.HTTPConnection.debuglevel = level
+    from six.moves.http_client import HTTPConnection
+    HTTPConnection.debuglevel = level