Skip to content

Commit

Permalink
Clean up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Nov 23, 2024
1 parent 2e388e5 commit ab79620
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/trio/_core/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2953,13 +2953,14 @@ async def checkpoint_if_cancelled() -> None:
_KqueueStatistics as IOStatistics,
)
else: # pragma: no cover
_patchers = sorted({"eventlet", "gevent"}.intersection(sys.modules.keys()))
_patchers = sorted({"eventlet", "gevent"}.intersection(sys.modules))
if _patchers:
raise NotImplementedError(
"unsupported platform or primitives trio depends on are monkey-patched out by {_patchers}",
"unsupported platform or primitives trio depends on are monkey-patched out by" +
", ".join(_patchers),
)
else:
raise NotImplementedError("unsupported platform")

raise NotImplementedError("unsupported platform")

from ._generated_instrumentation import *
from ._generated_run import *

0 comments on commit ab79620

Please sign in to comment.