Browse files

tweaking to be consistent with naming conventions, etc

  • Loading branch information...
1 parent 747e3da commit 4542830c0aa79a18174d91c008b25b7a34ae535e @ptwobrussell committed Jan 27, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 recipe__get_friends_followers.py
View
8 recipe__get_friends_followers.py
@@ -18,19 +18,19 @@
# You could call make_twitter_request(t, t.friends.ids, *args, **kw) or
# use functools to "partially bind" a new callable with these parameters
- getFriendIds = functools.partial(make_twitter_request, t, t.friends.ids)
+ get_friends_ids = functools.partial(make_twitter_request, t, t.friends.ids)
- # Ditto
+ # Ditto if you want to do the same thing to get followers...
- getFollowerIds = functools.partial(make_twitter_request, t, t.followers.ids)
+ # getFollowerIds = functools.partial(make_twitter_request, t, t.followers.ids)
cursor = -1
ids = []
while cursor != 0:
# Use make_twitter_request via the partially bound callable...
- response = getFriendIds(screen_name=SCREEN_NAME, cursor=cursor)
+ response = get_friends_ids(screen_name=SCREEN_NAME, cursor=cursor)
ids += response['ids']
cursor = response['next_cursor']

0 comments on commit 4542830

Please sign in to comment.