Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0cb7fb8

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎iot/api-client/mqtt_example/cloudiot_mqtt_example.py

Copy file name to clipboardExpand all lines: iot/api-client/mqtt_example/cloudiot_mqtt_example.py
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.