Skip to content

Commit

Permalink
asyncio: Avoid _wrap_loop prior to create_subprocess_exec
Browse files Browse the repository at this point in the history
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Aug 31, 2024
1 parent 6f42f99 commit b1ceb7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/portage/util/futures/_asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def run(coro):
run.__doc__ = _real_asyncio.run.__doc__


def create_subprocess_exec(*args, **kwargs):
def create_subprocess_exec(*args, loop=None, **kwargs):
"""
Create a subprocess.
Expand All @@ -140,7 +140,6 @@ def create_subprocess_exec(*args, **kwargs):
@rtype: asyncio.subprocess.Process (or compatible)
@return: asyncio.subprocess.Process interface
"""
loop = _wrap_loop(kwargs.pop("loop", None))
# Python 3.4 and later implement PEP 446, which makes newly
# created file descriptors non-inheritable by default.
kwargs.setdefault("close_fds", False)
Expand Down

0 comments on commit b1ceb7a

Please sign in to comment.