diff options
author | 2024-08-18 08:00:07 -0700 | |
---|---|---|
committer | 2024-08-18 08:47:01 -0700 | |
commit | a62faf99dbd0078cd58a76e6419e0a2d0d14d636 (patch) | |
tree | c00828ab972a72d1103f2ec11b3476793b687b3b | |
parent | _wrap_loop: Prevent redundant AsyncioEventLoop instances (diff) | |
download | portage-master.tar.gz portage-master.tar.bz2 portage-master.zip |
This class originated from commit 142d08c0636b and it is unused
since _PortageEventLoop was removed in commit 20204fd8c29.
Fixes: 20204fd8c29 ("Remove unused _PortageEventLoop and _PortageChildWatcher")
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | lib/portage/util/futures/_asyncio/__init__.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/portage/util/futures/_asyncio/__init__.py b/lib/portage/util/futures/_asyncio/__init__.py index c960d0363..bdacda59c 100644 --- a/lib/portage/util/futures/_asyncio/__init__.py +++ b/lib/portage/util/futures/_asyncio/__init__.py @@ -19,7 +19,6 @@ __all__ = ( "run", "shield", "sleep", - "Task", "wait", "wait_for", ) @@ -174,16 +173,6 @@ class Lock(_Lock): super().__init__(**kwargs) -class Task(Future): - """ - Schedule the execution of a coroutine: wrap it in a future. A task - is a subclass of Future. - """ - - def __init__(self, coro, loop=None): - raise NotImplementedError - - def ensure_future(coro_or_future, loop=None): """ Wrap a coroutine or an awaitable in a future. |