From b0543eaffc9af1d5300a353bf8f5a6969a24c3ab Mon Sep 17 00:00:00 2001 From: Jonas Geduldig Date: Sun, 17 Nov 2013 22:43:05 -0500 Subject: [PATCH] Replaced bad variable name choice of list --- TwitterGeoPics/SearchOldTweets.py | 6 +++--- TwitterGeoPics/StreamNewTweets.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/TwitterGeoPics/SearchOldTweets.py b/TwitterGeoPics/SearchOldTweets.py index af3a4f0..f79edef 100644 --- a/TwitterGeoPics/SearchOldTweets.py +++ b/TwitterGeoPics/SearchOldTweets.py @@ -46,9 +46,9 @@ def process_tweet(status, photo_dir, stalk): lookup_geocode(status) -def search_tweets(api, list, photo_dir, region, stalk, no_retweets, count): - """Get tweets containing any words in 'list'.""" - words = ' OR '.join(list) +def search_tweets(api, word_list, photo_dir, region, stalk, no_retweets, count): + """Get tweets containing any words in 'word_list'.""" + words = ' OR '.join(word_list) params = {'q':words, 'count':count} if region: params['geocode'] = '%f,%f,%fkm' % region # lat,lng,radius diff --git a/TwitterGeoPics/StreamNewTweets.py b/TwitterGeoPics/StreamNewTweets.py index 3cf3285..51ce01c 100644 --- a/TwitterGeoPics/StreamNewTweets.py +++ b/TwitterGeoPics/StreamNewTweets.py @@ -46,11 +46,11 @@ def process_tweet(status, photo_dir, stalk): lookup_geocode(status) -def stream_tweets(api, list, photo_dir, region, stalk, no_retweets): - """Get tweets containing any words in 'list' or that originate from 'region'.""" +def stream_tweets(api, word_list, photo_dir, region, stalk, no_retweets): + """Get tweets containing any words in 'word_list' or that originate from 'region'.""" params = {} - if list is not None: - words = ','.join(list) + if word_list is not None: + words = ','.join(word_list) params['track'] = words if region is not None: params['locations'] = '%f,%f,%f,%f' % region