Skip to content

Commit 7b10fc4

Browse files
authored
Merge pull request tweepy#947 from fhightower/print-statement-update
Updating print statements for python3
2 parents d0582a6 + 91887af commit 7b10fc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/auth_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ So let's fetch our request token to begin the dance::
5454
try:
5555
redirect_url = auth.get_authorization_url()
5656
except tweepy.TweepError:
57-
print 'Error! Failed to get request token.'
57+
print('Error! Failed to get request token.')
5858

5959
This call requests the token from twitter and returns to us the
6060
authorization URL where the user must be redirect to authorize us. Now
@@ -99,7 +99,7 @@ treasure box. To fetch this token we do the following::
9999
try:
100100
auth.get_access_token(verifier)
101101
except tweepy.TweepError:
102-
print 'Error! Failed to get access token.'
102+
print('Error! Failed to get access token.')
103103

104104
It is a good idea to save the access token for later use. You do not
105105
need to re-fetch it each time. Twitter currently does not expire the

docs/code_snippet.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ will wait for 15 minutes each time it hits the rate limit.
7676
7777
for follower in limit_handled(tweepy.Cursor(api.followers).items()):
7878
if follower.friends_count < 300:
79-
print follower.screen_name
79+
print(follower.screen_name)

0 commit comments

Comments
 (0)