You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@security.apache.org by en...@apache.org on 2026/09/16 11:18:04 UTC
(security-site) branch sboms updated: fix: switch from `asyncio.get_event_loop` to `asyncio.run`
This is an automated email from the ASF dual-hosted git repository.
raboof pushed a commit to branch sboms
in repository https://gitbox.apache.org/repos/asf/security-site.git
The following commit(s) were added to refs/heads/sboms by this push:
new fdeff1dd fix: switch from `asyncio.get_event_loop` to `asyncio.run`
fdeff1dd is described below
commit fdeff1ddcc6755fc3e16f4e60a3d39aac80266e2
Author: Arnout Engelen <ar...@bzzt.net>
AuthorDate: Wed Sep 16 13:17:08 2026 +0200
fix: switch from `asyncio.get_event_loop` to `asyncio.run`
`asyncio.get_event_loop` changed semantics in Python 3.14, and
the Python docs propose using this higher-level API.
---
app/__main__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/__main__.py b/app/__main__.py
index cf1081c0..9b049da1 100644
--- a/app/__main__.py
+++ b/app/__main__.py
@@ -9,5 +9,4 @@ httpserver = ahapi.simple(
log_stdout=True,
)
-loop = asyncio.get_event_loop()
-loop.run_until_complete(httpserver.loop())
+asyncio.run(httpserver.loop())