jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix closed wikisource sites detection

Don't rewrite closed wikis langs by mul:wikisource

Change-Id: I8b37ae59d3653298eb3274a2991e9afd97825399
---
M pywikibot/families/wikisource_family.py
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py
index 0e94726..f00cb91 100644
--- a/pywikibot/families/wikisource_family.py
+++ b/pywikibot/families/wikisource_family.py
@@ -73,6 +73,7 @@
aliases = cls.alphabetic + ['-', 'www']
for code in aliases:
if (code not in cls.languages_by_size
+ and code not in cls.closed_wikis
and code not in cls.code_aliases):
cls.code_aliases[code] = 'mul'
return cls.code_aliases

To view, visit change 587364. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8b37ae59d3653298eb3274a2991e9afd97825399
Gerrit-Change-Number: 587364
Gerrit-PatchSet: 5
Gerrit-Owner: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)