jenkins-bot has submitted this change and it was merged.
Change subject: interwiki cleanup
......................................................................
interwiki cleanup
interlanguage links are hold by wikidata. interwiki_putfirst dictionary is
not used anymore for most of mw sites and it's content is outdated since more
than 4 years.
Change-Id: I79ccd6b82f341b424cb7d7b43a642d1b62ff0ca9
---
M pywikibot/families/wikibooks_family.py
M pywikibot/families/wikinews_family.py
M pywikibot/families/wikipedia_family.py
M pywikibot/families/wikiquote_family.py
M pywikibot/families/wikisource_family.py
5 files changed, 0 insertions(+), 131 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/families/wikibooks_family.py
b/pywikibot/families/wikibooks_family.py
index b2972ae..4b9ac23 100644
--- a/pywikibot/families/wikibooks_family.py
+++ b/pywikibot/families/wikibooks_family.py
@@ -126,22 +126,6 @@
'af', 'ang', 'ca', 'fa', 'fy',
'it', 'nl', 'ru', 'th', 'zh',
]
- # Which languages have a special order for putting interlanguage links,
- # and what order is it? If a language is not in interwiki_putfirst,
- # alphabetical order on language code is used. For languages that are in
- # interwiki_putfirst, interwiki_putfirst is checked first, and
- # languages are put in the order given there. All other languages are
- # put after those, in code-alphabetical order.
- self.interwiki_putfirst = {
- 'en': self.alphabetic,
- 'fi': self.alphabetic,
- 'fr': self.alphabetic,
- 'he': ['en'],
- 'hu': ['en'],
- 'pl': self.alphabetic,
- 'simple': self.alphabetic
- }
-
# Subpages for documentation.
# TODO: List is incomplete, to be completed for missing languages.
self.doc_subpages = {
diff --git a/pywikibot/families/wikinews_family.py
b/pywikibot/families/wikinews_family.py
index a80743a..e6a94d6 100644
--- a/pywikibot/families/wikinews_family.py
+++ b/pywikibot/families/wikinews_family.py
@@ -39,20 +39,5 @@
#
https://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implement…
self.cross_allowed = ['ca', 'cs', 'en', 'fa',
'ko', ]
- # Which languages have a special order for putting interlanguage links,
- # and what order is it? If a language is not in interwiki_putfirst,
- # alphabetical order on language code is used. For languages that are in
- # interwiki_putfirst, interwiki_putfirst is checked first, and
- # languages are put in the order given there. All other languages are
- # put after those, in code-alphabetical order.
- self.interwiki_putfirst = {
- 'en': self.alphabetic,
- 'fi': self.alphabetic,
- 'fr': self.alphabetic,
- 'he': ['en'],
- 'hu': ['en'],
- 'pl': self.alphabetic,
- }
-
# TODO:
# Change site_tests.py when wikinews will have doc_subpage.
diff --git a/pywikibot/families/wikipedia_family.py
b/pywikibot/families/wikipedia_family.py
index 576b5d6..6c11b45 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -288,73 +288,6 @@
# but some languages don't use this.
self.nocapitalize = ['jbo']
- # Which languages have a special order for putting interlanguage links,
- # and what order is it? If a language is not in interwiki_putfirst,
- # alphabetical order on language code is used. For languages that are in
- # interwiki_putfirst, interwiki_putfirst is checked first, and
- # languages are put in the order given there. All other languages are
- # put after those, in code-alphabetical order.
-
- self.alphabetic_sr = [
- 'ace', 'kbd', 'af', 'ak', 'als',
'am', 'ang', 'ab', 'ar', 'an',
- 'arc', 'roa-rup', 'frp', 'arz', 'as',
'ast', 'gn', 'av', 'ay', 'az',
- 'bjn', 'id', 'ms', 'bg', 'bm',
'zh-min-nan', 'nan', 'map-bms', 'jv',
- 'su', 'ba', 'be', 'be-tarask', 'bh',
'bcl', 'bi', 'bn', 'bo', 'bar',
- 'bs', 'bpy', 'br', 'bug', 'bxr',
'ca', 'ceb', 'ch', 'cbk-zam', 'sn',
- 'tum', 'ny', 'cho', 'chr', 'co',
'cy', 'cv', 'cs', 'da', 'dk',
- 'pdc', 'de', 'nv', 'dsb', 'na',
'dv', 'dz', 'mh', 'et', 'el', 'eml',
- 'en', 'myv', 'es', 'eo', 'ext',
'eu', 'ee', 'fa', 'hif', 'fo', 'fr',
- 'fy', 'ff', 'fur', 'ga', 'gv',
'sm', 'gag', 'gd', 'gl', 'gan', 'ki',
- 'glk', 'got', 'gu', 'ha', 'hak',
'xal', 'haw', 'he', 'hi', 'ho',
- 'hsb', 'hr', 'hy', 'io', 'ig',
'ii', 'ilo', 'ia', 'ie', 'iu', 'ik',
- 'os', 'xh', 'zu', 'is', 'it',
'ja', 'ka', 'kl', 'kr', 'pam', 'krc',
- 'csb', 'kk', 'kw', 'rw', 'ky',
'mrj', 'rn', 'sw', 'km', 'kn', 'ko',
- 'kv', 'kg', 'ht', 'ks', 'ku',
'kj', 'lad', 'lbe', 'la', 'ltg', 'lv',
- 'to', 'lb', 'lez', 'lt', 'lij',
'li', 'ln', 'lo', 'jbo', 'lg',
- 'lmo', 'hu', 'mk', 'mg', 'mt',
'mi', 'min', 'cdo', 'mwl', 'ml',
- 'mdf', 'mo', 'mn', 'mr', 'mus',
'my', 'mzn', 'nah', 'fj', 'ne',
- 'nl', 'nds-nl', 'cr', 'new', 'nap',
'ce', 'frr', 'pih', 'no', 'nb',
- 'nn', 'nrm', 'nov', 'oc', 'mhr',
'or', 'om', 'ng', 'hz', 'uz', 'pa',
- 'pfl', 'pag', 'pap', 'koi', 'pi',
'pcd', 'pms', 'nds', 'pnb', 'pl',
- 'pt', 'pnt', 'ps', 'aa', 'kaa',
'crh', 'ty', 'ksh', 'ro', 'rmy',
- 'rm', 'qu', 'ru', 'rue', 'sa',
'sah', 'se', 'sg', 'sc', 'sco', 'sd',
- 'stq', 'st', 'nso', 'tn', 'sq',
'si', 'scn', 'simple', 'ss', 'sk',
- 'sl', 'cu', 'szl', 'so', 'ckb',
'srn', 'sr', 'sh', 'fi', 'sv', 'ta',
- 'shi', 'tl', 'kab', 'roa-tara', 'tt',
'te', 'tet', 'th', 'ti', 'vi',
- 'tg', 'tokipona', 'tp', 'tpi', 'chy',
've', 'tr', 'tk', 'tw', 'tyv',
- 'udm', 'uk', 'ur', 'ug', 'za',
'vec', 'vep', 'vo', 'fiu-vro', 'wa',
- 'vls', 'war', 'wo', 'wuu', 'ts',
'xmf', 'yi', 'yo', 'diq', 'zea',
- 'zh', 'zh-tw', 'zh-cn', 'zh-classical',
'zh-yue', 'bat-smg',
- ]
-
- self.interwiki_putfirst = {
- 'be-tarask': self.alphabetic,
- 'en': self.alphabetic,
- 'et': self.alphabetic_revised,
- 'fi': self.alphabetic_revised,
- 'fiu-vro': self.alphabetic_revised,
- 'fy': self.fyinterwiki,
- 'he': ['en'],
- 'hu': ['en'],
- 'lb': self.alphabetic,
- 'mk': self.alphabetic,
- 'ms': self.alphabetic_revised,
- 'nds': ['nds-nl'],
- 'nds-nl': ['nds'],
- 'nn': ['no', 'sv', 'da'] + self.alphabetic,
- 'no': self.alphabetic,
- 'nv': ['en', 'es'] + self.alphabetic,
- 'pdc': ['de', 'en'],
- 'pl': self.alphabetic,
- 'simple': self.alphabetic,
- 'sr': self.alphabetic_sr,
- 'sv': self.alphabetic,
- 'te': ['en', 'hi', 'kn', 'ta',
'ml'],
- 'ur': ['ar', 'fa', 'en'] + self.alphabetic,
- 'vi': self.alphabetic_revised,
- 'yi': ['en', 'he', 'de']
- }
-
# Languages that used to be coded in iso-8859-1
self.latin1old = [
'de', 'en', 'et', 'es', 'ia',
'la', 'af', 'cs', 'fr', 'pt', 'sl',
diff --git a/pywikibot/families/wikiquote_family.py
b/pywikibot/families/wikiquote_family.py
index fc50f85..4992260 100644
--- a/pywikibot/families/wikiquote_family.py
+++ b/pywikibot/families/wikiquote_family.py
@@ -88,23 +88,6 @@
'wo', 'zh',
]
- # Which languages have a special order for putting interlanguage links,
- # and what order is it? If a language is not in interwiki_putfirst,
- # alphabetical order on language code is used. For languages that are in
- # interwiki_putfirst, interwiki_putfirst is checked first, and
- # languages are put in the order given there. All other languages are
- # put after those, in code-alphabetical order.
- self.interwiki_putfirst = {
- 'en': self.alphabetic,
- 'fi': self.alphabetic,
- 'fr': self.alphabetic,
- 'he': ['en'],
- 'hu': ['en'],
- 'pl': self.alphabetic,
- 'simple': self.alphabetic,
- 'pt': self.alphabetic,
- }
-
# Subpages for documentation.
# TODO: List is incomplete, to be completed for missing languages.
self.doc_subpages = {
diff --git a/pywikibot/families/wikisource_family.py
b/pywikibot/families/wikisource_family.py
index 4a01b54..ead1392 100644
--- a/pywikibot/families/wikisource_family.py
+++ b/pywikibot/families/wikisource_family.py
@@ -45,22 +45,6 @@
'ca', 'el', 'fa', 'it', 'ko',
'no', 'pl', 'vi', 'zh',
]
- # Which languages have a special order for putting interlanguage links,
- # and what order is it? If a language is not in interwiki_putfirst,
- # alphabetical order on language code is used. For languages that are in
- # interwiki_putfirst, interwiki_putfirst is checked first, and
- # languages are put in the order given there. All other languages are
- # put after those, in code-alphabetical order.
- self.interwiki_putfirst = {
- 'en': self.alphabetic,
- 'fi': self.alphabetic,
- 'fr': self.alphabetic,
- 'he': ['en'],
- 'hu': ['en'],
- 'pl': self.alphabetic,
- 'simple': self.alphabetic
- }
-
self.authornamespaces = {
'_default': [0],
'ar': [102],
--
To view, visit
https://gerrit.wikimedia.org/r/271742
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I79ccd6b82f341b424cb7d7b43a642d1b62ff0ca9
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Russell Blau <russblau(a)imapmail.org>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>