From 2c15a861dc0002bad372dc35ce27aa19d893f52f Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 28 Feb 2018 17:00:16 +0100 Subject: [PATCH] replace removed iterbytes with direct iteration --- trezorlib/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trezorlib/tools.py b/trezorlib/tools.py index 5ea9beeba1..56e409dceb 100644 --- a/trezorlib/tools.py +++ b/trezorlib/tools.py @@ -62,7 +62,7 @@ def b58encode(v): """ encode v, which is a string of bytes, to base58.""" long_value = 0 - for c in iterbytes(v): + for c in v: long_value = long_value * 256 + c result = '' @@ -75,7 +75,7 @@ def b58encode(v): # Bitcoin does a little leading-zero-compression: # leading 0-bytes in the input become leading-1s nPad = 0 - for c in iterbytes(v): + for c in v: if c == 0: nPad += 1 else: