jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/344780 )
Change subject: [bugfix] Add 'mul' to exceptions list ......................................................................
[bugfix] Add 'mul' to exceptions list
- 'mul' pseudo language is used by wikisource and redirects to wikisource.org itself. That code is added to the language_by_size list in family's constructor. Therefore we must not add it by the mainenance script.
- also keep lines beneath 80 chars (PEP8)
Bug: T161398 Change-Id: I5016ec0ec563a8c5ac744abffe73032da5e71b7c --- M scripts/maintenance/wikimedia_sites.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/maintenance/wikimedia_sites.py b/scripts/maintenance/wikimedia_sites.py index 7a6ea23..dc72510 100755 --- a/scripts/maintenance/wikimedia_sites.py +++ b/scripts/maintenance/wikimedia_sites.py @@ -33,7 +33,7 @@ 'wiktionary', ]
-exceptions = ['-'] +exceptions = ['-', 'mul']
def update_family(families): @@ -74,7 +74,7 @@ text = ' self.languages_by_size = [\n' line = ' ' * 11 for code in new: - if len(line) + len(code) <= 76: + if len(line) + len(code) < 76: line += u" '%s'," % code else: text += '%s\n' % line
pywikibot-commits@lists.wikimedia.org