Skip to content

Commit 00315c8

Browse files
committed
Replace deprecated tostring with tobytes
1 parent 9196b70 commit 00315c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/bitcoin_functional/functional/test_framework/netutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def all_interfaces():
107107
max_possible *= 2
108108
else:
109109
break
110-
namestr = names.tostring()
110+
namestr = names.tobytes()
111111
return [(namestr[i:i+16].split(b'\0', 1)[0],
112112
socket.inet_ntoa(namestr[i+20:i+24]))
113113
for i in range(0, outbytes, struct_size)]

test/functional/test_framework/netutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def all_interfaces():
107107
max_possible *= 2
108108
else:
109109
break
110-
namestr = names.tostring()
110+
namestr = names.tobytes()
111111
return [(namestr[i:i+16].split(b'\0', 1)[0],
112112
socket.inet_ntoa(namestr[i+20:i+24]))
113113
for i in range(0, outbytes, struct_size)]

0 commit comments

Comments
 (0)