jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1107560?usp=email )
Change subject: backports: remove deprecation and declare not public API
......................................................................
backports: remove deprecation and declare not public API
Change-Id: I809b5e582d9d3d74bb775c420b061ea7810a3bbf
---
M pywikibot/backports.py
1 file changed, 2 insertions(+), 16 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/backports.py b/pywikibot/backports.py
index d93b8a0..d981548 100644
--- a/pywikibot/backports.py
+++ b/pywikibot/backports.py
@@ -1,8 +1,7 @@
"""This module contains backports to support older Python versions.
-.. deprecated:: 9.0
- The *nullcontext* context manager; use ``contextlib.nullcontext``
- instead. The *SimpleQueue* queue; use ``queue.SimpleQueue`` instead.
+This module is not part of the public pywikibot API. Breaking changes may be
+made at any time, and the module is not subject to deprecation requirements.
"""
#
# (C) Pywikibot team, 2014-2024
@@ -203,16 +202,3 @@
yield group
else:
from itertools import batched # type: ignore[no-redef]
-
-
-# import ModuleDeprecationWrapper here to prevent circular import
-from pywikibot.tools import ModuleDeprecationWrapper # noqa: E402
-
-
-wrapper = ModuleDeprecationWrapper(__name__)
-wrapper.add_deprecated_attr('nullcontext',
- replacement_name='contextlib.nullcontext',
- since='9.0.0')
-wrapper.add_deprecated_attr('SimpleQueue',
- replacement_name='queue.SimpleQueue',
- since='9.0.0')
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1107560?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I809b5e582d9d3d74bb775c420b061ea7810a3bbf
Gerrit-Change-Number: 1107560
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot