Skip to content

Commit afdc6ae

Browse files
committed
Use Singleton-comparison instead (conntype is None).
1 parent 0fc5e24 commit afdc6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_espatcontrol/adafruit_espatcontrol_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def connect(self, address, conntype=None):
4949
host, port = address
5050

5151
# Determine the conntype from port if not specified.
52-
if conntype == None:
52+
if conntype is None:
5353
if port == 80:
5454
conntype = "TCP"
5555
elif port == 443:

0 commit comments

Comments
 (0)