Skip to content

Commit 0cb7fb8

Browse files
gguussdpebot
authored andcommitted
Print is a function. (GoogleCloudPlatform#986)
1 parent 18666de commit 0cb7fb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ def error_str(rc):
9292

9393
def on_connect(unused_client, unused_userdata, unused_flags, rc):
9494
"""Callback for when a device connects."""
95-
print 'on_connect', error_str(rc)
95+
print('on_connect', error_str(rc))
9696

9797

9898
def on_disconnect(unused_client, unused_userdata, rc):
9999
"""Paho callback for when a device disconnects."""
100-
print 'on_disconnect', error_str(rc)
100+
print('on_disconnect', error_str(rc))
101101

102102

103103
def on_publish(unused_client, unused_userdata, unused_mid):
104104
"""Paho callback when a message is sent to the broker."""
105-
print 'on_publish'
105+
print('on_publish')
106106

107107

108108
def parse_command_line_args():

0 commit comments

Comments
 (0)