jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361156?usp=email )
Change subject: page: Remove deprecated positional template arguments
......................................................................
page: Remove deprecated positional template arguments
Positional content and namespaces arguments were deprecated in
Pywikibot 9.2 and are scheduled for removal in Pywikibot 12. Remove the
compatibility decorators from templates and itertemplates so their
keyword-only parameters are enforced, and remove the roadmap entry.
Keep positional total support in itertemplates, as explicitly allowed
by its signature and documentation.
Change-Id: I990d1dd69b41ee4f3f3e3b0705ae2095cdb53340
---
M ROADMAP.rst
M pywikibot/page/_basepage.py
2 files changed, 0 insertions(+), 4 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index e76d1d1..eda9d22 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -40,8 +40,6 @@
* 9.3.0: *botflag* parameter of :meth:`Page.save()<page.BasePage.save>`,
:meth:`Page.put()
<page.BasePage.put>`, :meth:`Page.touch()<page.BasePage.touch>` and
:meth:`Page.set_redirect_target()<page.Page.set_redirect_target>` was
renamed to *bot*
-* 9.2.0: All parameters of :meth:`Page.templates<page.BasePage.templates>` and
- :meth:`Page.itertemplates()<page.BasePage.itertemplates>` must be given as
keyworded arguments
* 9.2.0: Imports of :mod:`logging` functions from the :mod:`bot` module are
deprecated and will be desupported
* 9.2.0: *total* argument in ``-logevents`` pagegenerators option is
deprecated;
use ``-limit`` instead (:phab:`T128981`)
diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index 3b4538d..27c7ec5 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -1856,7 +1856,6 @@
"""Convenience function to get the Wikibase item of a page."""
return pywikibot.ItemPage.fromPage(self)
- @deprecated_signature(since='9.2')
def templates(self,
*,
content: bool = False,
@@ -1901,7 +1900,6 @@
return list(self._templates)
- @deprecated_signature(since='9.2')
def itertemplates(
self,
total: int | None = None,
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361156?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: I990d1dd69b41ee4f3f3e3b0705ae2095cdb53340
Gerrit-Change-Number: 1361156
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]