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

-- 
To view, visit https://gerrit.wikimedia.org/r/344780
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5016ec0ec563a8c5ac744abffe73032da5e71b7c
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Dalba <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Magul <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to