From 1d4b39ef1b039e7eeb2ceca74a7f9d40bfbeb0c0 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 7 Aug 2022 19:05:53 +0300 Subject: [PATCH] deprecated all before 3.10 --- kvmd/aiogp.py | 4 +--- setup.py | 3 --- 2 files changed, 1 insertion(+), 6 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: diff --git a/setup.py b/setup.py index d7a0244b..8a6f6239 100755 --- a/setup.py +++ b/setup.py @@ -144,9 +144,6 @@ def main() -> None: classifiers=[ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Development Status :: 5 - Production/Stable", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: System :: Systems Administration", "Operating System :: POSIX :: Linux",