Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
8440d31c
Commit
8440d31c
authored
Dec 08, 2009
by
Joshua Roesslein
Browse files
Added tweepy.debug() method that allows enabling debug info printing.
Currently this just sets httplib.HTTPConnection.debuglevel=1.
parent
d8d68462
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/__init__.py
View file @
8440d31c
...
@@ -20,3 +20,8 @@ from tweepy.cursor import Cursor
...
@@ -20,3 +20,8 @@ from tweepy.cursor import Cursor
# Global, unauthenticated instance of API
# Global, unauthenticated instance of API
api
=
API
()
api
=
API
()
def
debug
(
enable
=
True
,
level
=
1
):
import
httplib
httplib
.
HTTPConnection
.
debuglevel
=
level
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment