Use new print syntax for Python 3 compatibility
authorAaron Hill <aa1ronham@gmail.com>
Fri, 21 Feb 2014 11:45:46 +0000 (06:45 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Fri, 21 Feb 2014 11:45:46 +0000 (06:45 -0500)
tests/test_auth.py
tests/test_streaming.py

index 0685148f8d80afc8f69e25ef89a2df8a0d41ab07..29678f51ae59d33aeeff86c4e4b40fb8088c02fb 100644 (file)
@@ -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)
index ed4824bbb263803ff72e2c0f8c06c2bf13cc497e..b80b7e46d92aabac3986a690abe0d309b8f5dcd0 100644 (file)
@@ -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):