From 7995eb5d01f1c55cbf44c1b0186a8514b6ea8789 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 21 Feb 2014 06:45:46 -0500 Subject: [PATCH] Use new print syntax for Python 3 compatibility --- tests/test_auth.py | 2 +- tests/test_streaming.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_auth.py b/tests/test_auth.py index 0685148..29678f5 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -10,7 +10,7 @@ class TweepyAuthTests(unittest.TestCase): # test getting access token auth_url = auth.get_authorization_url() - print 'Please authorize: ' + auth_url + print('Please authorize: ' + auth_url) verifier = raw_input('PIN: ').strip() self.assert_(len(verifier) > 0) access_token = auth.get_access_token(verifier) diff --git a/tests/test_streaming.py b/tests/test_streaming.py index ed4824b..b80b7e4 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -27,7 +27,7 @@ class MockStreamListener(StreamListener): return False def on_error(self, code): - print "response: %s" % code + print("response: %s" % code) return True def on_status(self, status): -- 2.25.1