Skip to content

Commit

Permalink
socketpool: don't use "is" to compare numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed May 6, 2024
1 parent 40b51da commit 86ffa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_esp32spi/adafruit_esp32spi_socketpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def connect(self, address, conntype=None):

def send(self, data):
"""Send some data to the socket."""
if self._type is SocketPool.SOCK_DGRAM:
if self._type == SocketPool.SOCK_DGRAM:
conntype = self._interface.UDP_MODE
else:
conntype = self._interface.TCP_MODE
Expand Down

0 comments on commit 86ffa6b

Please sign in to comment.