diff options
author | Maxim Devaev <[email protected]> | 2022-08-07 19:05:53 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-08-07 19:05:53 +0300 |
commit | 1d4b39ef1b039e7eeb2ceca74a7f9d40bfbeb0c0 (patch) | |
tree | 5575503a3004c9fa827e0fc9d94068aa96b4d182 /kvmd/aiogp.py | |
parent | ec9785b4be4afb8667e6968a0454aeca62a190e2 (diff) |
deprecated all before 3.10
Diffstat (limited to 'kvmd/aiogp.py')
-rw-r--r-- | kvmd/aiogp.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/aiogp.py b/kvmd/aiogp.py index 6860c6ba..a55c9f71 100644 --- a/kvmd/aiogp.py +++ b/kvmd/aiogp.py @@ -20,7 +20,6 @@ # ========================================================================== # -import sys import asyncio import threading import dataclasses @@ -147,8 +146,7 @@ class _DebouncedValue: self.__notifier = notifier self.__loop = loop - queue_kwargs = ({"loop": loop} if sys.version_info < (3, 10) else {}) - self.__queue: "asyncio.Queue[bool]" = asyncio.Queue(**queue_kwargs) # type: ignore + self.__queue: "asyncio.Queue[bool]" = asyncio.Queue() # type: ignore self.__task = loop.create_task(self.__consumer_task_loop()) def set(self, value: bool) -> None: |