From 59d0a895d1230898e271e83bcb52febc6cb7e628 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20N=C3=BC=C3=9Flein?= Date: Tue, 5 Apr 2016 17:14:41 +0200 Subject: [PATCH] py3-ify getting_started.rst .. also still compatible with python2 --- docs/getting_started.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index abafd8c..c084fde 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -26,7 +26,7 @@ Hello Tweepy public_tweets = api.home_timeline() for tweet in public_tweets: - print tweet.text + print(tweet.text) This example will download your home timeline tweets and print each one of their texts to the console. Twitter requires all requests to @@ -55,10 +55,10 @@ the following code returns to us an User model:: Models contain the data and some helper methods which we can then use:: - print user.screen_name - print user.followers_count + print(user.screen_name) + print(user.followers_count) for friend in user.friends(): - print friend.screen_name + print(friend.screen_name) For more information about models please see ModelsReference. -- 2.25.1