electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d19e8e7f9b792be8e0dacd461f28ac11f2415e41
parent ffe634288286ff383074c656c2067e7f2c1b104e
Author: Janus <ysangkok@gmail.com>
Date:   Tue, 27 Mar 2018 11:41:51 +0200

lightning: python3.5 compat

Diffstat:
Mlib/lightning.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/lightning.py b/lib/lightning.py @@ -726,7 +726,7 @@ async def readJson(reader): newlines = sum(1 if x == b"\n"[0] else 0 for x in data) if newlines > 1: print("Too many newlines in Electrum/lightning.py!", data) try: - return json.loads(data) + return json.loads(data.decode("ascii")) # decoding for python3.5 compat except ValueError: try: data += await asyncio.wait_for(reader.read(1), 1)