jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/516216 )
Change subject: [bugfix] redirect 'mo' site code to 'ro'
......................................................................
[bugfix] redirect 'mo' site code to 'ro'
Remove 'mo' site code from closed_wikis list
because it is redirected to 'ro'
Bug: T225417
Change-Id: I14ee58b3f900aa6b4c6e29c2de3b153c1f86db1f
---
M pywikibot/families/wikipedia_family.py
M pywikibot/families/wiktionary_family.py
M pywikibot/family.py
3 files changed, 8 insertions(+), 5 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/families/wikipedia_family.py
b/pywikibot/families/wikipedia_family.py
index e3fa734..4bf0a76 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -19,8 +19,8 @@
closed_wikis = [
# See
https://noc.wikimedia.org/conf/highlight.php?file=closed.dblist
- 'aa', 'advisory', 'cho', 'ho', 'hz',
'ii', 'kj', 'kr', 'mh', 'mo',
- 'mus', 'ng', 'quality', 'strategy',
'ten', 'usability'
+ 'aa', 'advisory', 'cho', 'ho', 'hz',
'ii', 'kj', 'kr', 'mh', 'mus',
+ 'ng', 'quality', 'strategy', 'ten',
'usability'
]
removed_wikis = [
diff --git a/pywikibot/families/wiktionary_family.py
b/pywikibot/families/wiktionary_family.py
index a7982ba..d6a5b1c 100644
--- a/pywikibot/families/wiktionary_family.py
+++ b/pywikibot/families/wiktionary_family.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Family module for Wiktionary."""
#
-# (C) Pywikibot team, 2005-2018
+# (C) Pywikibot team, 2005-2019
#
# Distributed under the terms of the MIT license.
#
@@ -21,8 +21,8 @@
closed_wikis = [
# See
https://noc.wikimedia.org/conf/highlight.php?file=closed.dblist
'aa', 'ab', 'ak', 'als', 'as',
'av', 'ba', 'bh', 'bi', 'bm', 'bo',
- 'ch', 'cr', 'dz', 'ik', 'mh',
'mo', 'pi', 'rm', 'rn', 'sc', 'sn',
- 'to', 'tw', 'xh', 'yo', 'za',
+ 'ch', 'cr', 'dz', 'ik', 'mh',
'pi', 'rm', 'rn', 'sc', 'sn', 'to',
'tw',
+ 'xh', 'yo', 'za',
]
removed_wikis = [
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 265567c..1437dd1 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -1661,6 +1661,9 @@
# Language aliases
'nb': 'no', # T86924
+ # closed wiki redirection aliases
+ 'mo': 'ro',
+
# Incomplete language code change. T86915
'minnan': 'zh-min-nan',
'nan': 'zh-min-nan',
--
To view, visit
https://gerrit.wikimedia.org/r/516216
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I14ee58b3f900aa6b4c6e29c2de3b153c1f86db1f
Gerrit-Change-Number: 516216
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)