]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Remove unused curio check (#3010)
authorKar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Tue, 19 Dec 2023 04:53:30 +0000 (23:53 -0500)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 04:53:30 +0000 (08:53 +0400)
httpx/_utils.py

index 21241967e36c56d220cb9d589eb22bb44d935f09..bc3cb001dd77589495a48c589833896f175a762f 100644 (file)
@@ -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()