Skip to content

Commit

Permalink
Fix SocketPoolConstants typo
Browse files Browse the repository at this point in the history
  • Loading branch information
justmobilize committed May 20, 2024
1 parent 69fac99 commit 9b2c77a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions adafruit_esp32spi/adafruit_esp32spi_socketpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
_global_socketpool = {}


class SocketPoolContants: # pylint: disable=too-few-public-methods
class SocketPoolConstants: # pylint: disable=too-few-public-methods
"""Helper class for the constants that are needed everywhere"""

SOCK_STREAM = const(0)
Expand All @@ -40,7 +40,7 @@ class SocketPoolContants: # pylint: disable=too-few-public-methods
MAX_PACKET = const(4000)


class SocketPool(SocketPoolContants):
class SocketPool(SocketPoolConstants):
"""ESP32SPI SocketPool library"""

def __new__(cls, iface: ESP_SPIcontrol):
Expand All @@ -60,12 +60,12 @@ def getaddrinfo( # pylint: disable=too-many-arguments,unused-argument
if not isinstance(port, int):
raise ValueError("Port must be an integer")
ipaddr = self._interface.get_host_by_name(host)
return [(SocketPoolContants.AF_INET, socktype, proto, "", (ipaddr, port))]
return [(SocketPoolConstants.AF_INET, socktype, proto, "", (ipaddr, port))]

def socket( # pylint: disable=redefined-builtin
self,
family=SocketPoolContants.AF_INET,
type=SocketPoolContants.SOCK_STREAM,
family=SocketPoolConstants.AF_INET,
type=SocketPoolConstants.SOCK_STREAM,
proto=0,
fileno=None,
):
Expand Down

0 comments on commit 9b2c77a

Please sign in to comment.