From 9b2c77a599cf6eed63dee8e0cd1c42bc1120cffd Mon Sep 17 00:00:00 2001 From: Justin Myers Date: Sun, 19 May 2024 21:21:05 -0700 Subject: [PATCH] Fix SocketPoolConstants typo --- adafruit_esp32spi/adafruit_esp32spi_socketpool.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/adafruit_esp32spi/adafruit_esp32spi_socketpool.py b/adafruit_esp32spi/adafruit_esp32spi_socketpool.py index 65226fe..a1fca82 100644 --- a/adafruit_esp32spi/adafruit_esp32spi_socketpool.py +++ b/adafruit_esp32spi/adafruit_esp32spi_socketpool.py @@ -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) @@ -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): @@ -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, ):