From b4b27ff6777c8906c2b31dd879bd4cc1d9e4f6ce Mon Sep 17 00:00:00 2001 From: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Date: Mon, 18 Dec 2023 23:53:30 -0500 Subject: [PATCH] Remove unused curio check (#3010) --- httpx/_utils.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/httpx/_utils.py b/httpx/_utils.py index 21241967e3..bc3cb001dd 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -295,14 +295,10 @@ async def _get_time(self) -> float: import trio return trio.current_time() - elif library == "curio": # pragma: no cover - import curio - - return typing.cast(float, await curio.clock()) - - import asyncio + else: + import asyncio - return asyncio.get_event_loop().time() + return asyncio.get_event_loop().time() def sync_start(self) -> None: self.started = time.perf_counter()