Skip to content

Commit 58856a6

Browse files
committed
refactor(deprecation): Stop using get_event_loop_policy(), deprecated in Python >= 3.14
1 parent ada611c commit 58856a6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ and commits should be formatted using [Conventional Commits](https://www.convent
1010

1111
### Changed
1212

13-
- Dependencies: Bump various libraries ([4467bc1](https://github.com/moodlehq/asero/commit/4467bc15b3364f0e0d189f0f4b942afdabcd253d))
14-
- GitHub: Run checks and tests with Python 3.14
13+
- Dependencies: Bump various libraries by @stronk7 ([4467bc1](https://github.com/moodlehq/asero/commit/4467bc15b3364f0e0d189f0f4b942afdabcd253d))
14+
- GitHub: Run checks and tests with Python 3.14 by @stronk7 ([ada611c](https://github.com/moodlehq/asero/commit/ada611cb2010a19adbd0d27a12def45d8992d915))
15+
- Deprecation: Stop using `get_event_loop_policy()`, deprecated in Python >= 3.14
1516
## [0.4.1] - 2025-10-09
1617

1718
### Added

asero/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ async def run():
3838
def main():
3939
"""Prepare the async loop for operation and graceful shutdown, then run()."""
4040
# Create the event loop, set it as current and add the signal handlers.
41-
loop = asyncio.get_event_loop_policy().new_event_loop()
42-
asyncio.get_event_loop_policy().set_event_loop(loop)
41+
loop = asyncio.new_event_loop()
42+
asyncio.set_event_loop(loop)
4343
exitcode = 0
4444
try:
4545
loop.run_until_complete(run()) # Run the main loop.

0 commit comments

Comments
 (0)