From 4bc149c1c059204ed7535d98ef2f99f976ccc90a Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sun, 5 Jul 2009 19:19:06 -0500 Subject: [PATCH] A few fixes. --- api.py | 2 +- binder.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1