jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361165?usp=email )
Change subject: proofreadpage: Remove the deprecated page_gen content argument
......................................................................
proofreadpage: Remove the deprecated page_gen content argument
The content argument has been ignored since Pywikibot 9.0 and is
scheduled for removal in Pywikibot 12. Remove its compatibility adapter
from IndexPage.page_gen, the unused import, and the pending-removal
roadmap entry.
Bug: T358635
Change-Id: Id32456ad6caffb305d81427ec279653a5e56f6d8
---
M ROADMAP.rst
M pywikibot/proofreadpage.py
2 files changed, 1 insertion(+), 4 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 72fefb0..efc7191 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -47,8 +47,6 @@
-------------------------------
* 9.2.0: Imports of :mod:`logging` functions from the :mod:`bot` module are
deprecated and will be desupported
-* 9.0.0: The *content* parameter of :meth:`proofreadpage.IndexPage.page_gen`
is deprecated and will be
- ignored (:phab:`T358635`)
Pending removal in Pywikibot 13
diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py
index 51c0850..80aa945 100644
--- a/pywikibot/proofreadpage.py
+++ b/pywikibot/proofreadpage.py
@@ -36,7 +36,7 @@
from pywikibot.data.api import ListGenerator, Request
from pywikibot.exceptions import Error, InvalidTitleError, OtherPageSaveError
from pywikibot.page import PageSourceType
-from pywikibot.tools import MediaWikiVersion, cached, remove_last_args
+from pywikibot.tools import MediaWikiVersion, cached
try:
@@ -1301,7 +1301,6 @@
return len(self._page_from_numbers)
@check_if_cached
- @remove_last_args(['content']) # since 9.0.0
def page_gen(
self, start: int = 1,
end: int | None = None,
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361165?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: Id32456ad6caffb305d81427ec279653a5e56f6d8
Gerrit-Change-Number: 1361165
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]