jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361151?usp=email )
Change subject: site: Remove deprecated protectedpages and namespace aliases
......................................................................
site: Remove deprecated protectedpages and namespace aliases
The type parameter of protectedpages and the all parameter of namespace
were deprecated in Pywikibot 9 and are scheduled for removal in
Pywikibot 12. Remove their argument adapters, unused imports, and
pending-removal entries from ROADMAP.rst.
Callers must use protect_type and all_ns respectively.
Change-Id: I7f7e9b74c1e8732c6ecb464608afcee2be2dd392
---
M ROADMAP.rst
M pywikibot/site/_apisite.py
M pywikibot/site/_generators.py
3 files changed, 0 insertions(+), 8 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 9ce6dda..00f14c4 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -45,10 +45,6 @@
use ``-limit`` instead (:phab:`T128981`)
* 9.0.0: The *content* parameter of :meth:`proofreadpage.IndexPage.page_gen`
is deprecated and will be
ignored (:phab:`T358635`)
-* 9.0.0: The ``type`` parameter of :meth:`site.APISite.protectedpages()
- <pywikibot.site._generators.GeneratorsMixin.protectedpages>` was renamed to
``protect_type``
-* 9.0.0: The ``all`` parameter of :meth:`site.APISite.namespace()
- <pywikibot.site._apisite.APISite.namespace>` was renamed to ``all_ns``
* 9.0.0: ``allrevisions`` parameter of :class:`xmlreader.XmlDump` is
deprecated, use ``revisions`` instead
(:phab:`T340804`)
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 48553c7..b31bb65 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -74,7 +74,6 @@
from pywikibot.tools import (
MediaWikiVersion,
cached,
- deprecate_arg,
deprecated,
deprecated_args,
deprecated_signature,
@@ -1467,7 +1466,6 @@
# 'title' is expected to be URL-encoded already
return self.siteinfo['articlepath'].replace('$1', title)
- @deprecate_arg('all', 'all_ns') # since 9.0
def namespace(self, num: int, all_ns: bool = False) -> str | Namespace:
"""Return string containing local name of namespace 'num'.
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index 43b0f49..fda0abc 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -29,7 +29,6 @@
from pywikibot.site._decorators import need_right
from pywikibot.site._namespace import NamespaceArgType
from pywikibot.tools import (
- deprecate_arg,
deprecated_args,
deprecated_signature,
is_ip_address,
@@ -2487,7 +2486,6 @@
"""
return self.querypage('Listredirects', total)
- @deprecate_arg('type', 'protect_type') # since 9.0
def protectedpages(
self,
namespace: NamespaceArgType = 0,
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361151?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: I7f7e9b74c1e8732c6ecb464608afcee2be2dd392
Gerrit-Change-Number: 1361151
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]