Find deprecated asyncio event loop policies

Proprietary

The asyncio policy system (get_event_loop_policy(), set_event_loop_policy() and the *EventLoopPolicy classes) was deprecated in Python 3.14 and is scheduled for removal in Python 3.16. Pass loop_factory to asyncio.run() or asyncio.Runner instead.

org.openrewrite.python.migrate.FindAsyncioEventLoopPolicy
mod run . --recipe=org.openrewrite.python.migrate.FindAsyncioEventLoopPolicy

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.