From 13814fdf1f2dead020abc70257a94dcaadfa0aab Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sat, 9 Oct 2010 22:39:38 -0500 Subject: [PATCH] Stream now accepts an authentication instance. It should now be possible to authenticate with the streaming API by either using BasicAuthHandler or OAuthHandler. --- tweepy/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index fa64c44..b22764c 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -68,9 +68,9 @@ class Stream(object): host = 'stream.twitter.com' - def __init__(self, username, password, listener, timeout=5.0, retry_count = None, + def __init__(self, auth, listener, timeout=5.0, retry_count = None, retry_time = 10.0, snooze_time = 5.0, buffer_size=1500, headers=None): - self.auth = BasicAuthHandler(username, password) + self.auth = auth self.running = False self.timeout = timeout self.retry_count = retry_count -- 2.25.1