jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101085?usp=email )
Change subject: cleanup: remove MediaWiki dependency in archivebot ......................................................................
cleanup: remove MediaWiki dependency in archivebot
Bug: T378984 Change-Id: I4a9e271f73c9f2e0fa142a6626ca9559e31d7e39 --- M scripts/archivebot.py 1 file changed, 2 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index 732b362..ac8b0fc 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -532,11 +532,8 @@ self.timestripper = TimeStripper(site=self.site)
# read maxarticlesize - try: - # keep a gap of 1 KB not to block later changes - self.maxsize = self.site.siteinfo['maxarticlesize'] - 1024 - except KeyError: # mw < 1.28 - self.maxsize = 2_096_128 # 2 MB - 1 KB gap + # keep a gap of 1 KB not to block later changes + self.maxsize = self.site.siteinfo['maxarticlesize'] - 1024
self.page = DiscussionPage(page, self, keep=keep) self.comment_params = {
pywikibot-commits@lists.wikimedia.org