Skip to content
This repository
Browse code

tweaking to be consistent with naming conventions, etc

  • Loading branch information...
commit 4542830c0aa79a18174d91c008b25b7a34ae535e 1 parent 747e3da
Matthew A. Russell authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 recipe__get_friends_followers.py
8 recipe__get_friends_followers.py
@@ -18,11 +18,11 @@
18 18 # You could call make_twitter_request(t, t.friends.ids, *args, **kw) or
19 19 # use functools to "partially bind" a new callable with these parameters
20 20
21   - getFriendIds = functools.partial(make_twitter_request, t, t.friends.ids)
  21 + get_friends_ids = functools.partial(make_twitter_request, t, t.friends.ids)
22 22
23   - # Ditto
  23 + # Ditto if you want to do the same thing to get followers...
24 24
25   - getFollowerIds = functools.partial(make_twitter_request, t, t.followers.ids)
  25 + # getFollowerIds = functools.partial(make_twitter_request, t, t.followers.ids)
26 26
27 27 cursor = -1
28 28 ids = []
@@ -30,7 +30,7 @@
30 30
31 31 # Use make_twitter_request via the partially bound callable...
32 32
33   - response = getFriendIds(screen_name=SCREEN_NAME, cursor=cursor)
  33 + response = get_friends_ids(screen_name=SCREEN_NAME, cursor=cursor)
34 34 ids += response['ids']
35 35 cursor = response['next_cursor']
36 36

0 comments on commit 4542830

Please sign in to comment.
Something went wrong with that request. Please try again.