diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-04-03 15:35:59 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-04-03 15:54:35 +0200 |
| commit | ff5874bcf7e391acf3b454c11c21636547400818 (patch) | |
| tree | 5bf4080f939dcb44923edb98f3f13fdf9ae897f3 /qa/rpc-tests/test_framework/netutil.py | |
| parent | Merge #7789: [Doc] Add note about using the Qt official binary installer. (diff) | |
| parent | [qa] mininode: Combine struct.pack format strings (diff) | |
| download | discoin-ff5874bcf7e391acf3b454c11c21636547400818.tar.xz discoin-ff5874bcf7e391acf3b454c11c21636547400818.zip | |
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)
Diffstat (limited to 'qa/rpc-tests/test_framework/netutil.py')
| -rw-r--r-- | qa/rpc-tests/test_framework/netutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/netutil.py b/qa/rpc-tests/test_framework/netutil.py index bfdef76ad..bbc58a14e 100644 --- a/qa/rpc-tests/test_framework/netutil.py +++ b/qa/rpc-tests/test_framework/netutil.py @@ -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 |