From 4849efc7e8305a678ec636abae82dfffd0949bc0 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Sun, 24 Dec 2023 05:05:50 -0600 Subject: [PATCH] compat: remove deprecated members (#129) Fixes: https://github.com/ansible-community/antsibull-core/issues/124 --- changelogs/fragments/129-deprecated-compat.yaml | 6 ++++++ src/antsibull_core/compat.py | 14 +------------- 2 files changed, 7 insertions(+), 13 deletions(-) create mode 100644 changelogs/fragments/129-deprecated-compat.yaml diff --git a/changelogs/fragments/129-deprecated-compat.yaml b/changelogs/fragments/129-deprecated-compat.yaml new file mode 100644 index 0000000..1c8c129 --- /dev/null +++ b/changelogs/fragments/129-deprecated-compat.yaml @@ -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)." diff --git a/src/antsibull_core/compat.py b/src/antsibull_core/compat.py index de11178..9d085d5 100644 --- a/src/antsibull_core/compat.py +++ b/src/antsibull_core/compat.py @@ -13,9 +13,7 @@ from __future__ import annotations import argparse -import asyncio import sys -from importlib import metadata BooleanOptionalAction: type[argparse.BooleanOptionalAction] @@ -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",)