Skip to content

Commit 15a0111

Browse files
committed
Added parentheses, sorted imports.
1 parent b09a1fd commit 15a0111

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cayenne/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import paho.mqtt.client as mqtt
21
import time
2+
import paho.mqtt.client as mqtt
33
from cayenne import __version__
44

55
# Data types
@@ -55,7 +55,7 @@ def on_connect(client, cayenne, rc):
5555
# reconnect then subscriptions will be renewed.
5656
cayenne.connected = True
5757
cayenne.reconnect = False
58-
command_topic = cayenne.getCommandTopic();
58+
command_topic = cayenne.getCommandTopic()
5959
print("SUB %s\n" % command_topic)
6060
client.subscribe(command_topic)
6161
cayenne.mqttPublish("%s/sys/model" % cayenne.rootTopic, "Python")

tests/Test-01-TestClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
parser.add_argument('--clientID', help='clientID', default='clientID')
1515

1616
args = parser.parse_args()
17-
print args
17+
print(args)
1818

1919
try:
2020
done = False

0 commit comments

Comments
 (0)