From 912d5331b902307b91e32452ac6ed71a3694272e Mon Sep 17 00:00:00 2001 From: TheKysek Date: Sat, 1 Jul 2017 17:05:39 +0200 Subject: [PATCH] Python 3.4 fixes --- minode/pow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minode/pow.py b/minode/pow.py index 61e55e0..beff27b 100644 --- a/minode/pow.py +++ b/minode/pow.py @@ -1,3 +1,4 @@ +import base64 import hashlib import logging import multiprocessing @@ -33,7 +34,7 @@ def _worker(obj): logging.debug("Finished doing POW, nonce: {}, time: {}s".format(nonce, time.time() - t)) obj = structure.Object(nonce, obj.expires_time, obj.object_type, obj.version, obj.stream_number, obj.object_payload) - logging.debug("Object vector is {}".format(obj.vector.hex())) + logging.debug("Object vector is {}".format(base64.b16encode(obj.vector).decode())) with shared.objects_lock: shared.objects[obj.vector] = obj