mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Merge #7778: [qa] Bug fixes and refactor
4444806[qa] mininode: Combine struct.pack format strings (MarcoFalke)faaa3c9[qa] mininode: Catch exceptions in got_data (MarcoFalke)fa2cea1[qa] rpc-tests: Properly use integers, floats (MarcoFalke)fa524d9[qa] Use python2/3 syntax (MarcoFalke)
This commit is contained in:
@@ -45,7 +45,7 @@ def _convert_ip_port(array):
|
||||
# convert host from mangled-per-four-bytes form as used by kernel
|
||||
host = binascii.unhexlify(host)
|
||||
host_out = ''
|
||||
for x in range(0, len(host)/4):
|
||||
for x in range(0, len(host) // 4):
|
||||
(val,) = struct.unpack('=I', host[x*4:(x+1)*4])
|
||||
host_out += '%08x' % val
|
||||
|
||||
|
||||
Reference in New Issue
Block a user