tlightning: python3.5 compat - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d19e8e7f9b792be8e0dacd461f28ac11f2415e41 DIR parent ffe634288286ff383074c656c2067e7f2c1b104e HTML Author: Janus <ysangkok@gmail.com> Date: Tue, 27 Mar 2018 11:41:51 +0200 lightning: python3.5 compat Diffstat: M lib/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/lightning.py b/lib/lightning.py t@@ -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)