Skip to content

Commit

Permalink
Remove unused curio check (#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
karpetrosyan committed Dec 19, 2023
1 parent a11fc38 commit b4b27ff
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions httpx/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b4b27ff

Please sign in to comment.