Skip to content

Commit

Permalink
Use standard super() for __new__
Browse files Browse the repository at this point in the history
  • Loading branch information
justmobilize committed Apr 26, 2024
1 parent 7514919 commit fae2755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_wiznet5k/adafruit_wiznet5k_socketpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SocketPool(SocketPoolContants):
def __new__(cls, iface: WIZNET5K):
# We want to make sure to return the same pool for the same interface
if iface not in _global_socketpool:
_global_socketpool[iface] = object.__new__(cls)
_global_socketpool[iface] = super().__new__(cls)
return _global_socketpool[iface]

def __init__(self, iface: WIZNET5K):
Expand Down

0 comments on commit fae2755

Please sign in to comment.