diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-04-23 14:35:52 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-04-23 20:20:46 +0200 |
commit | 5555528b47b7d33a5b963c076e6bb09ee25931b5 (patch) | |
tree | e9830c9c4a9e0eba40b557cc10e94583dbee993a /qa/rpc-tests | |
parent | f604bf63211f48396fb6076ba1eec33f27e0b2e3 (diff) |
[qa] mininode: Unfiddle strings into bytes
Diffstat (limited to 'qa/rpc-tests')
-rwxr-xr-x | qa/rpc-tests/test_framework/mininode.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py index af33564114..30aecfd445 100755 --- a/qa/rpc-tests/test_framework/mininode.py +++ b/qa/rpc-tests/test_framework/mininode.py @@ -93,7 +93,7 @@ def deser_uint256(f): def ser_uint256(u): - rs = "" + rs = b"" for i in xrange(8): rs += struct.pack("<I", u & 0xFFFFFFFFL) u >>= 32 @@ -191,7 +191,7 @@ def deser_string_vector(f): def ser_string_vector(l): - r = "" + r = b"" if len(l) < 253: r = struct.pack("B", len(l)) elif len(l) < 0x10000: @@ -624,7 +624,7 @@ class CAlert(object): self.vchSig = deser_string(f) def serialize(self): - r = "" + r = b"" r += ser_string(self.vchMsg) r += ser_string(self.vchSig) return r @@ -988,7 +988,7 @@ class msg_reject(object): def __init__(self): self.message = b"" self.code = 0 - self.reason = "" + self.reason = b"" self.data = 0L def deserialize(self, f): |