Skip to content

Commit

Permalink
Handle missing AbstractEventLoopPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Jan 15, 2025
1 parent 64c7c41 commit b64e798
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
1 change: 0 additions & 1 deletion lib/portage/tests/util/futures/asyncio/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ py.install_sources(
[
'test_event_loop_in_fork.py',
'test_pipe_closed.py',
'test_policy_wrapper_recursion.py',
'test_run_until_complete.py',
'test_subprocess_exec.py',
'test_wakeup_fd_sigchld.py',
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions lib/portage/util/futures/unix_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
__all__ = ("DefaultEventLoopPolicy",)

import asyncio as _real_asyncio
from asyncio import events

import fcntl
import os
Expand All @@ -27,7 +26,7 @@ def _set_nonblocking(fd):
fcntl.fcntl(fd, fcntl.F_SETFL, flags)


class _PortageEventLoopPolicy(events.AbstractEventLoopPolicy):
class _PortageEventLoopPolicy:
"""
Implementation of asyncio.AbstractEventLoopPolicy based on portage's
internal event loop. This supports running event loops in forks,
Expand Down

0 comments on commit b64e798

Please sign in to comment.