Skip to content

Commit

Permalink
compat: remove deprecated members (#129)
Browse files Browse the repository at this point in the history
Fixes: #124
  • Loading branch information
gotmax23 authored Dec 24, 2023
1 parent c18dbf2 commit 4849efc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 6 additions & 0 deletions changelogs/fragments/129-deprecated-compat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
removed_features:
- "``antsibull_core.compat`` - remove deprecated ``asyncio_run``,
``best_get_loop``, ``create_task`` and ``metadata``
(https://github.com/ansible-community/antsibull-core/issues/124,
https://github.com/ansible-community/antsibull-core/pull/129)."
14 changes: 1 addition & 13 deletions src/antsibull_core/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
from __future__ import annotations

import argparse
import asyncio
import sys
from importlib import metadata

BooleanOptionalAction: type[argparse.BooleanOptionalAction]

Expand All @@ -37,14 +35,4 @@
BooleanOptionalAction = argparse.BooleanOptionalAction


best_get_loop = asyncio.get_running_loop
asyncio_run = asyncio.run
create_task = asyncio.create_task

__all__ = (
"BooleanOptionalAction",
"asyncio_run",
"best_get_loop",
"create_task",
"metadata",
)
__all__ = ("BooleanOptionalAction",)

0 comments on commit 4849efc

Please sign in to comment.