Commit 8440d31c authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Added tweepy.debug() method that allows enabling debug info printing.

Currently this just sets httplib.HTTPConnection.debuglevel=1.
parent d8d68462
......@@ -20,3 +20,8 @@ from tweepy.cursor import Cursor
# Global, unauthenticated instance of API
api = API()
def debug(enable=True, level=1):
import httplib
httplib.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