From 8670dc8d6c0c920f21598b132250537a744eeebc Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Tue, 9 Dec 2014 18:59:49 -0800 Subject: [PATCH] Fix tweepy.debug() by using six's module helpers. --- tweepy/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/__init__.py b/tweepy/__init__.py index a1b2d33..4be5a5a 100644 --- a/tweepy/__init__.py +++ b/tweepy/__init__.py @@ -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 -- 2.25.1