jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/835557 )
Change subject: [IMPR] use underscore numeric literals ......................................................................
[IMPR] use underscore numeric literals
Change-Id: I098ff2b2575e5055c1cf78b1ba79f99b9d974ef4 --- M pywikibot/version.py M scripts/archivebot.py 2 files changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/version.py b/pywikibot/version.py index a8e2c00..e7cecc8 100644 --- a/pywikibot/version.py +++ b/pywikibot/version.py @@ -170,7 +170,7 @@ tag, = cur.fetchone()
tag = os.path.split(tag)[1] - date = time.gmtime(date / 1000000) + date = time.gmtime(date / 1_000_000) return tag, rev, date
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index 33dd9d5..1e2494f 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -501,7 +501,7 @@ # 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 = 2096128 # 2 MB - 1 KB gap + self.maxsize = 2_096_128 # 2 MB - 1 KB gap
self.page = DiscussionPage(page, self, keep=keep) self.comment_params = {