electrum

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

commit 34413a9c306a297c833ed2b5e267e61ca297a225
parent 5207c40cc3ef782765e2a413248025d42c156edc
Author: SomberNight <somber.night@protonmail.com>
Date:   Fri,  5 Mar 2021 20:11:54 +0100

python 3.6 compat: asyncio.Task.set_name was added in 3.8

Diffstat:
Melectrum/interface.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/interface.py b/electrum/interface.py @@ -380,7 +380,8 @@ class Interface(Logger): async def spawn_task(): task = await self.network.taskgroup.spawn(self.run()) - task.set_name(f"interface::{str(server)}") + if sys.version_info >= (3, 8): + task.set_name(f"interface::{str(server)}") asyncio.run_coroutine_threadsafe(spawn_task(), self.network.asyncio_loop) @property