Commit 8670dc8d authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Fix tweepy.debug() by using six's module helpers.

parent 842e80e5
......@@ -21,6 +21,5 @@ from tweepy.cursor import Cursor
api = API()
def debug(enable=True, level=1):
# import http.client
# http.client.HTTPConnection.debuglevel = level
from six.moves.http_client import HTTPConnection
HTTPConnection.debuglevel = level
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment