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 bb4e9ce
Showing 1 changed file with 1 addition and 2 deletions.
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(object):
"""
Implementation of asyncio.AbstractEventLoopPolicy based on portage's
internal event loop. This supports running event loops in forks,
Expand Down

0 comments on commit bb4e9ce

Please sign in to comment.