Merge pull request #3228 from Anish-M-code/1.14.7-dev

Fix array.array object has no attribute tostring() in qa/testframework/netutil.py
This commit is contained in:
Old Dip Tracker 2023-03-03 14:23:38 -05:00 committed by GitHub
commit 4c34b6ebe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ def all_interfaces():
max_possible *= 2
else:
break
namestr = names.tostring()
namestr = names.tobytes()
return [(namestr[i:i+16].split(b'\0', 1)[0],
socket.inet_ntoa(namestr[i+20:i+24]))
for i in range(0, outbytes, struct_size)]