Skip to content

Commit 86ffa6b

Browse files
committed
socketpool: don't use "is" to compare numbers
1 parent 40b51da commit 86ffa6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_esp32spi/adafruit_esp32spi_socketpool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def connect(self, address, conntype=None):
121121

122122
def send(self, data):
123123
"""Send some data to the socket."""
124-
if self._type is SocketPool.SOCK_DGRAM:
124+
if self._type == SocketPool.SOCK_DGRAM:
125125
conntype = self._interface.UDP_MODE
126126
else:
127127
conntype = self._interface.TCP_MODE

0 commit comments

Comments
 (0)