Skip to content

Commit c060f7b

Browse files
committed
Merge pull request tweepy#250 from santosh/master
Changed all Tabs to Spaces
2 parents 24d97c0 + df4044c commit c060f7b

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

examples/streaming.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from tweepy import OAuthHandler
33
from tweepy import Stream
44

5-
# Go to http://dev.twitter.com and create an app.
5+
# Go to http://dev.twitter.com and create an app.
66
# The consumer key and secret will be generated for you after
77
consumer_key=""
88
consumer_secret=""
@@ -13,21 +13,21 @@
1313
access_token_secret=""
1414

1515
class StdOutListener(StreamListener):
16-
""" A listener handles tweets are the received from the stream.
17-
This is a basic listener that just prints received tweets to stdout.
16+
""" A listener handles tweets are the received from the stream.
17+
This is a basic listener that just prints received tweets to stdout.
1818
19-
"""
20-
def on_data(self, data):
21-
print data
22-
return True
19+
"""
20+
def on_data(self, data):
21+
print data
22+
return True
2323

24-
def on_error(self, status):
25-
print status
24+
def on_error(self, status):
25+
print status
2626

2727
if __name__ == '__main__':
28-
l = StdOutListener()
29-
auth = OAuthHandler(consumer_key, consumer_secret)
30-
auth.set_access_token(access_token, access_token_secret)
28+
l = StdOutListener()
29+
auth = OAuthHandler(consumer_key, consumer_secret)
30+
auth.set_access_token(access_token, access_token_secret)
3131

32-
stream = Stream(auth, l)
33-
stream.filter(track=['basketball'])
32+
stream = Stream(auth, l)
33+
stream.filter(track=['basketball'])

tweepy/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def me(self):
260260

261261
""" Perform bulk look up of friendships from user ID or screenname """
262262
def lookup_friendships(self, user_ids=None, screen_names=None):
263-
return self._lookup_friendships(list_to_csv(user_ids), list_to_csv(screen_names))
263+
return self._lookup_friendships(list_to_csv(user_ids), list_to_csv(screen_names))
264264

265265
_lookup_friendships = bind_api(
266266
path = '/friendships/lookup.json',

tweepy/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ def get_xauth_access_token(self, username, password):
138138
oauth_consumer=self._consumer,
139139
http_method='POST', http_url=url,
140140
parameters = {
141-
'x_auth_mode': 'client_auth',
142-
'x_auth_username': username,
143-
'x_auth_password': password
141+
'x_auth_mode': 'client_auth',
142+
'x_auth_username': username,
143+
'x_auth_password': password
144144
}
145145
)
146146
request.sign_request(self._sigmethod, self._consumer, None)

tweepy/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def parse(cls, api, json):
315315
result = cls(api)
316316
for k,v in json.items():
317317
if k == 'connections':
318-
setattr(result, 'is_following', 'following' in v)
318+
setattr(result, 'is_following', 'following' in v)
319319
setattr(result, 'is_followed_by', 'followed_by' in v)
320320
else:
321321
setattr(result, k, v)

0 commit comments

Comments
 (0)