From: Josh Roesslein Date: Sat, 31 Oct 2009 07:03:16 +0000 (-0500) Subject: Update test shell. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=28cd7618c0cc9ef3633783516e34cdda4ec79b58;p=tweepy.git Update test shell. --- 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})