mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
deprecated all before 3.10
This commit is contained in:
parent
ec9785b4be
commit
1d4b39ef1b
@ -20,7 +20,6 @@
|
|||||||
# ========================================================================== #
|
# ========================================================================== #
|
||||||
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import threading
|
import threading
|
||||||
import dataclasses
|
import dataclasses
|
||||||
@ -147,8 +146,7 @@ class _DebouncedValue:
|
|||||||
self.__notifier = notifier
|
self.__notifier = notifier
|
||||||
self.__loop = loop
|
self.__loop = loop
|
||||||
|
|
||||||
queue_kwargs = ({"loop": loop} if sys.version_info < (3, 10) else {})
|
self.__queue: "asyncio.Queue[bool]" = asyncio.Queue() # type: ignore
|
||||||
self.__queue: "asyncio.Queue[bool]" = asyncio.Queue(**queue_kwargs) # type: ignore
|
|
||||||
self.__task = loop.create_task(self.__consumer_task_loop())
|
self.__task = loop.create_task(self.__consumer_task_loop())
|
||||||
|
|
||||||
def set(self, value: bool) -> None:
|
def set(self, value: bool) -> None:
|
||||||
|
|||||||
3
setup.py
3
setup.py
@ -144,9 +144,6 @@ def main() -> None:
|
|||||||
classifiers=[
|
classifiers=[
|
||||||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
"Development Status :: 5 - Production/Stable",
|
"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",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Topic :: System :: Systems Administration",
|
"Topic :: System :: Systems Administration",
|
||||||
"Operating System :: POSIX :: Linux",
|
"Operating System :: POSIX :: Linux",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user