jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/671662 )
Change subject: [cleanup] Remove deprecated DiscussionThread.should_be_archived() ......................................................................
[cleanup] Remove deprecated DiscussionThread.should_be_archived()
Change-Id: I67be63c8f7669e2debefde62a5e5b4242312d40e --- M scripts/archivebot.py 1 file changed, 1 insertion(+), 9 deletions(-)
Approvals: DannyS712: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index ec3e233..2fe7542 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -112,9 +112,7 @@ from pywikibot import i18n from pywikibot.textlib import (extract_sections, findmarker, TimeStripper, to_local_digits) -from pywikibot.tools import ( - deprecated, frozenmap, issue_deprecation_warning, -) +from pywikibot.tools import frozenmap, issue_deprecation_warning
ShouldArchive = Tuple[str, str] @@ -381,12 +379,6 @@ """Return wikitext discussion thread.""" return '== {} ==\n\n{}'.format(self.title, self.content)
- @deprecated('PageArchiver.should_archive_thread(thread)', since='20200727', - future_warning=True) - def should_be_archived(self, archiver) -> Optional[ShouldArchive]: - """Check whether thread has to be archived.""" - return archiver.should_archive_thread(self) -
class DiscussionPage(pywikibot.Page):
pywikibot-commits@lists.wikimedia.org