jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361185?usp=email )

Change subject: Remove deprecated xmlreader.parseRestrictions alias
......................................................................

Remove deprecated xmlreader.parseRestrictions alias

Remove the module-level alias deprecated in version 9.0. Callers can
use XmlDump.parse_restrictions instead. Document the removal under
code cleanups for version 12.

Change-Id: Ida380864de3327beab7a7a884f392de7b4b72fab
---
M ROADMAP.rst
M pywikibot/xmlreader.py
2 files changed, 3 insertions(+), 13 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/ROADMAP.rst b/ROADMAP.rst
index f7116e9..8c0bc33 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -14,6 +14,8 @@
 * Remove the deprecated conversion of ``bot=None`` to ``bot=True`` in
   :meth:`APISite.editpage()<pywikibot.site._apisite.APISite.editpage>`; use
   a boolean value for *bot*.
+* Remove the deprecated ``xmlreader.parseRestrictions`` alias; use
+  :meth:`xmlreader.XmlDump.parse_restrictions` instead.

 **Other breaking changes**

diff --git a/pywikibot/xmlreader.py b/pywikibot/xmlreader.py
index d897bc3..3a4bb66 100644
--- a/pywikibot/xmlreader.py
+++ b/pywikibot/xmlreader.py
@@ -30,11 +30,7 @@

 from collections.abc import Callable, Iterator

-from pywikibot.tools import (
-    ModuleDeprecationWrapper,
-    issue_deprecation_warning,
-    open_archive,
-)
+from pywikibot.tools import issue_deprecation_warning, open_archive


 @dataclass
@@ -331,11 +327,3 @@
             content_model=(revision.findtext(f'{uri}model') or 'wikitext'),
             # could get comment, minor as well
         )
-
-
-wrapper = ModuleDeprecationWrapper(__name__)
-wrapper.add_deprecated_attr(
-    'parseRestrictions',
-    XmlDump.parse_restrictions,
-    replacement_name='pywikibot.xmlreader.XmlDump.parseRestrictions',
-    since='9.0.0')

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361185?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: Ida380864de3327beab7a7a884f392de7b4b72fab
Gerrit-Change-Number: 1361185
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to