diff --git a/lib/portage/process.py b/lib/portage/process.py index a66b6a5410..3f2c48e927 100644 --- a/lib/portage/process.py +++ b/lib/portage/process.py @@ -22,11 +22,7 @@ from dataclasses import dataclass from functools import lru_cache, partial from typing import Any, Optional, Callable, Union - -try: - from inspect import iscoroutinefunction -except ImportError: - iscoroutinefunction = _asyncio.iscoroutinefunction +from inspect import iscoroutinefunction from portage import os from portage import _encodings diff --git a/lib/portage/util/futures/_asyncio/__init__.py b/lib/portage/util/futures/_asyncio/__init__.py index ea67adcae4..9f248bf90e 100644 --- a/lib/portage/util/futures/_asyncio/__init__.py +++ b/lib/portage/util/futures/_asyncio/__init__.py @@ -44,11 +44,7 @@ wait_for, ) -try: - from inspect import iscoroutinefunction -except ImportError: - iscoroutinefunction = _asyncio.iscoroutinefunction - +from inspect import iscoroutinefunction import threading from typing import Optional