Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused curio check #3010

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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