From: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Date: Tue, 19 Dec 2023 04:53:30 +0000 (-0500) Subject: Remove unused curio check (#3010) X-Git-Tag: 0.26.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4b27ff6777c8906c2b31dd879bd4cc1d9e4f6ce;p=thirdparty%2Fhttpx.git Remove unused curio check (#3010) --- diff --git a/httpx/_utils.py b/httpx/_utils.py index 21241967..bc3cb001 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -295,14 +295,10 @@ class Timer: 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()