From: BigxMac Date: Wed, 10 Dec 2014 01:57:59 +0000 (-0500) Subject: Fixed httplib import X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6f1d0f776ebca9ceb9674e317b1f2d1d37cad978;p=tweepy.git Fixed httplib import In Python 3 httplib should be imported and used as http.client --- 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