From 6f1d0f776ebca9ceb9674e317b1f2d1d37cad978 Mon Sep 17 00:00:00 2001 From: BigxMac Date: Tue, 9 Dec 2014 20:57:59 -0500 Subject: [PATCH] Fixed httplib import In Python 3 httplib should be imported and used as http.client --- CONTRIBUTORS | 1 + tweepy/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index f99fbd2..874f437 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -13,6 +13,7 @@ Ferenc Szalai Gergely Imreh Guan Yang Ivo Wetzel +Jared Stefanowicz James Rowe Jenny Loomis Johannes Faigle diff --git a/tweepy/__init__.py b/tweepy/__init__.py index 27d84e3..95d59ef 100644 --- a/tweepy/__init__.py +++ b/tweepy/__init__.py @@ -22,6 +22,6 @@ api = API() def debug(enable=True, level=1): - import httplib - httplib.HTTPConnection.debuglevel = level + import http.client + http.client.HTTPConnection.debuglevel = level -- 2.25.1