Skip to content

Commit 8bb6857

Browse files
committed
socket: Native struct sockaddr may come as bytes or bytearray.
1 parent 8948005 commit 8bb6857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socket/socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
IP_DROP_MEMBERSHIP = 36
99

1010
def _resolve_addr(addr):
11-
if isinstance(addr, bytes):
11+
if isinstance(addr, (bytes, bytearray)):
1212
return addr
1313
if len(addr) != 2:
1414
raise NotImplementedError("Only IPv4 supported")

0 commit comments

Comments
 (0)