Update print statements to print() functions

This commit is contained in:
Clayton Davis 2017-10-06 14:45:25 -04:00
parent 0702b4bce1
commit 4f1e41a9e5
3 changed files with 7 additions and 7 deletions

View file

@ -27,10 +27,10 @@ Now set up how you want to handle the signals.
class MyStreamer(TwythonStreamer):
def on_success(self, data):
if 'text' in data:
print data['text'].encode('utf-8')
print(data['text'])
def on_error(self, status_code, data):
print status_code
print(status_code)
# Want to stop trying to get data because of the error?
# Uncomment the next line!