From 2fbb4009889e393c855d2438b4f1e8ee374b9640 Mon Sep 17 00:00:00 2001 From: ritzdorf Date: Fri, 5 Jun 2015 17:48:59 +0200 Subject: [PATCH] Minor string bug, that doesn't work in python2 --- bitcoin/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/messages.py b/bitcoin/messages.py index 59bd55cc..8c397625 100644 --- a/bitcoin/messages.py +++ b/bitcoin/messages.py @@ -102,7 +102,7 @@ def stream_deserialize(cls, f, protover=PROTO_VERSION): # print("Going to deserialize '%s'" % msg) return cls.msg_deser(_BytesIO(msg)) else: - print("Command '%s' not in messagemap" % str(command, 'ascii')) + print("Command '%s' not in messagemap" % repr(command)) return None def stream_serialize(self, f):