From: Josh Roesslein Date: Mon, 6 Jul 2009 00:19:06 +0000 (-0500) Subject: A few fixes. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4bc149c1c059204ed7535d98ef2f99f976ccc90a;p=tweepy.git A few fixes. --- diff --git a/api.py b/api.py index 4d0c9d1..373961b 100644 --- a/api.py +++ b/api.py @@ -10,7 +10,7 @@ class API(object): def __init__(self, username=None, password=None, host='twitter.com', secure=False, classes={'user': User, 'status': Status}): if username and password: - self._b64up = base64.encode('%s:%s' % (username, password)) + self._b64up = base64.b64encode('%s:%s' % (username, password)) else: self._b64up = None self.host = host diff --git a/binder.py b/binder.py index c3961db..5c70488 100644 --- a/binder.py +++ b/binder.py @@ -1,4 +1,5 @@ import httplib +import urllib from parsers import parse_error from error import TweepError