[ruff-ecosystem] Fix CLI crash on Python 3.14 (#21092)

This commit is contained in:
Dan Parizher 2025-10-29 17:37:39 -04:00 committed by GitHub
parent 5139f76d1f
commit 980b4c55b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View file

@ -528,7 +528,8 @@ if __name__ == "__main__":
else:
logging.basicConfig(level=logging.INFO)
loop = asyncio.get_event_loop()
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
if args.checkouts:
args.checkouts.mkdir(exist_ok=True, parents=True)
main_task = asyncio.ensure_future(