From 28cd7618c0cc9ef3633783516e34cdda4ec79b58 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sat, 31 Oct 2009 02:03:16 -0500 Subject: [PATCH] Update test shell. --- tweepyshell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tweepyshell.py b/tweepyshell.py index 57de31f..56127d3 100755 --- a/tweepyshell.py +++ b/tweepyshell.py @@ -4,6 +4,7 @@ import sys import code import tweepy +from tweepy import API, BasicAuthHandler """Launch an interactive shell ready for Tweepy usage @@ -17,7 +18,7 @@ if len(sys.argv) != 3: print 'Usage: tweepyshell ' exit(1) -api = tweepy.API.new(auth='basic', username=sys.argv[1], password=sys.argv[2]) +api = API(BasicAuthHandler(username=sys.argv[1], password=sys.argv[2])) code.interact('', local={'tweepy': tweepy, 'api': api}) -- 2.25.1