Skip to content

Commit 69b3773

Browse files
authored
Merge pull request #29 from bcmi-labs/imports_order
umqtt: Fix order of imports.
2 parents a4fd08a + 6b6fde1 commit 69b3773

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arduino_iot_cloud/umqtt.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
import time
2626

2727
try:
28+
from ussl import wrap_socket
29+
import usocket as socket
30+
import ustruct as struct
31+
import ulogging as logging
32+
except ImportError:
2833
import socket
2934
import struct
3035
import logging
3136
from arduino_iot_cloud.ussl import wrap_socket
32-
except ImportError:
33-
import usocket as socket
34-
import ustruct as struct
35-
import ulogging as logging
36-
from ussl import wrap_socket
3737

3838

3939
class MQTTException(Exception):

0 commit comments

Comments
 (0)