jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/615666 )
Change subject: [L10N] Update languages_by_size ......................................................................
[L10N] Update languages_by_size
- also remove Python 2 code parts
Change-Id: Iae4c7460d7356b1470303051958205d67e097f84 --- M pywikibot/families/commons_family.py M pywikibot/families/foundation_family.py M pywikibot/families/i18n_family.py M pywikibot/families/incubator_family.py M pywikibot/families/lyricwiki_family.py M pywikibot/families/mediawiki_family.py M pywikibot/families/meta_family.py M pywikibot/families/omegawiki_family.py M pywikibot/families/osm_family.py M pywikibot/families/outreach_family.py M pywikibot/families/species_family.py M pywikibot/families/vikidia_family.py M pywikibot/families/wikibooks_family.py M pywikibot/families/wikidata_family.py M pywikibot/families/wikimania_family.py M pywikibot/families/wikimediachapter_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 M pywikibot/families/wikitech_family.py M pywikibot/families/wikiversity_family.py M pywikibot/families/wikivoyage_family.py M pywikibot/families/wiktionary_family.py M pywikibot/families/wowwiki_family.py 25 files changed, 64 insertions(+), 116 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/families/commons_family.py b/pywikibot/families/commons_family.py index 4687a41..27bf2e1 100644 --- a/pywikibot/families/commons_family.py +++ b/pywikibot/families/commons_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia Commons.""" # -# (C) Pywikibot team, 2005-2018 +# (C) Pywikibot team, 2005-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/foundation_family.py b/pywikibot/families/foundation_family.py index 14ef42e..04d1329 100644 --- a/pywikibot/families/foundation_family.py +++ b/pywikibot/families/foundation_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Foundation wiki.""" # -# (C) Pywikibot team, 2019 +# (C) Pywikibot team, 2019-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/i18n_family.py b/pywikibot/families/i18n_family.py index 36bcaa6..b97a0ae 100644 --- a/pywikibot/families/i18n_family.py +++ b/pywikibot/families/i18n_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Translate Wiki.""" # -# (C) Pywikibot team, 2007-2018 +# (C) Pywikibot team, 2007-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/incubator_family.py b/pywikibot/families/incubator_family.py index 3d26270..16121de 100644 --- a/pywikibot/families/incubator_family.py +++ b/pywikibot/families/incubator_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Incubator Wiki.""" # -# (C) Pywikibot team, 2006-2019 +# (C) Pywikibot team, 2006-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/lyricwiki_family.py b/pywikibot/families/lyricwiki_family.py index 4de9933..9c1ac64 100644 --- a/pywikibot/families/lyricwiki_family.py +++ b/pywikibot/families/lyricwiki_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/mediawiki_family.py b/pywikibot/families/mediawiki_family.py index 001a759..8049897 100644 --- a/pywikibot/families/mediawiki_family.py +++ b/pywikibot/families/mediawiki_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for MediaWiki wiki.""" # -# (C) Pywikibot team, 2006-2019 +# (C) Pywikibot team, 2006-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/meta_family.py b/pywikibot/families/meta_family.py index 83ed5d8..c1366e8 100644 --- a/pywikibot/families/meta_family.py +++ b/pywikibot/families/meta_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Meta Wiki.""" # -# (C) Pywikibot team, 2005-2018 +# (C) Pywikibot team, 2005-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/omegawiki_family.py b/pywikibot/families/omegawiki_family.py index 5ceabf0..8edd09c 100644 --- a/pywikibot/families/omegawiki_family.py +++ b/pywikibot/families/omegawiki_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Omega Wiki.""" # -# (C) Pywikibot team, 2006-2019 +# (C) Pywikibot team, 2006-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/osm_family.py b/pywikibot/families/osm_family.py index bfcdc2d..107c595 100644 --- a/pywikibot/families/osm_family.py +++ b/pywikibot/families/osm_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for OpenStreetMap wiki.""" # -# (C) Pywikibot team, 2009-2018 +# (C) Pywikibot team, 2009-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/outreach_family.py b/pywikibot/families/outreach_family.py index ce476b5..4626d50 100644 --- a/pywikibot/families/outreach_family.py +++ b/pywikibot/families/outreach_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia outreach wiki.""" # -# (C) Pywikibot team, 2014-2018 +# (C) Pywikibot team, 2014-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/species_family.py b/pywikibot/families/species_family.py index 55b57fe..895f717 100644 --- a/pywikibot/families/species_family.py +++ b/pywikibot/families/species_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia species wiki.""" # -# (C) Pywikibot team, 2007-2018 +# (C) Pywikibot team, 2007-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/vikidia_family.py b/pywikibot/families/vikidia_family.py index f1bb080..a648d4f 100755 --- a/pywikibot/families/vikidia_family.py +++ b/pywikibot/families/vikidia_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Vikidia.""" # -# (C) Pywikibot team, 2010-2018 +# (C) Pywikibot team, 2010-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/wikibooks_family.py b/pywikibot/families/wikibooks_family.py index 4c344f3..f4817f5 100644 --- a/pywikibot/families/wikibooks_family.py +++ b/pywikibot/families/wikibooks_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
@@ -19,12 +17,11 @@
closed_wikis = [ # See https://noc.wikimedia.org/conf/highlight.php?file=dblists/closed.dblist # noqa - 'aa', 'ak', 'als', 'ang', 'as', 'ast', 'ay', - 'bi', 'bm', 'bo', 'ch', 'co', 'ga', 'gn', 'got', - 'gu', 'ie', 'kn', 'ks', 'lb', 'ln', 'lv', 'mi', - 'mn', 'my', 'na', 'nah', 'nds', 'ps', 'qu', 'rm', - 'se', 'simple', 'su', 'sw', 'tk', 'ug', 'uz', - 'vo', 'wa', 'xh', 'yo', 'za', 'zh-min-nan', 'zu', + 'aa', 'ak', 'als', 'ang', 'as', 'ast', 'ay', 'bi', 'bm', 'bo', 'ch', + 'co', 'ga', 'gn', 'got', 'gu', 'ie', 'kn', 'ks', 'lb', 'ln', 'lv', + 'mi', 'mn', 'my', 'na', 'nah', 'nds', 'ps', 'qu', 'rm', 'se', 'simple', + 'su', 'sw', 'tk', 'ug', 'uz', 'vo', 'wa', 'xh', 'yo', 'za', + 'zh-min-nan', 'zu', ]
removed_wikis = [ @@ -35,7 +32,7 @@ languages_by_size = [ 'en', 'hu', 'de', 'fr', 'pt', 'ja', 'it', 'es', 'nl', 'pl', 'id', 'he', 'fi', 'zh', 'sq', 'az', 'fa', 'vi', 'ru', 'ca', 'eu', 'da', 'ko', 'sv', - 'th', 'gl', 'sr', 'cs', 'ba', 'hi', 'hr', 'ar', 'no', 'tr', 'sa', 'ta', + 'th', 'gl', 'ba', 'sr', 'cs', 'hi', 'hr', 'ar', 'no', 'tr', 'sa', 'ta', 'uk', 'eo', 'sk', 'is', 'ro', 'bn', 'si', 'mk', 'ka', 'bg', 'ms', 'tt', 'lt', 'el', 'li', 'ur', 'sl', 'km', 'tl', 'la', 'et', 'be', 'kk', 'ia', 'ml', 'oc', 'ne', 'hy', 'tg', 'cv', 'pa', 'ku', 'fy', 'bs', 'cy', 'af', diff --git a/pywikibot/families/wikidata_family.py b/pywikibot/families/wikidata_family.py index 5c4882f..34f7274 100644 --- a/pywikibot/families/wikidata_family.py +++ b/pywikibot/families/wikidata_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import config from pywikibot import family
diff --git a/pywikibot/families/wikimania_family.py b/pywikibot/families/wikimania_family.py index 9651f77..8bc4c15 100644 --- a/pywikibot/families/wikimania_family.py +++ b/pywikibot/families/wikimania_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimania wikis.""" # -# (C) Pywikibot team, 2017-2019 +# (C) Pywikibot team, 2017-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import classproperty
@@ -32,7 +30,7 @@ @classproperty def langs(cls): """Property listing family languages.""" - cls.langs = super(Family, cls).langs + cls.langs = super().langs for lang, url in cls.langs.items(): if not url.startswith(cls.name): cls.langs[lang] = cls.name + url diff --git a/pywikibot/families/wikimediachapter_family.py b/pywikibot/families/wikimediachapter_family.py index 5d2cfb1..ed59ba5 100644 --- a/pywikibot/families/wikimediachapter_family.py +++ b/pywikibot/families/wikimediachapter_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikimedia chapter, thematic organisation and WUG wikis.""" # -# (C) Pywikibot team, 2012-2019 +# (C) Pywikibot team, 2012-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import deprecated, classproperty
@@ -24,9 +22,9 @@
codes = [ 'am', 'ar', 'bd', 'be', 'br', 'ca', 'cn', 'co', 'dk', 'ec', 'ee', 'fi', - 'ge', 'gr', 'hi', 'id', 'id-internal', 'il', 'mai', 'mk', 'mx', - 'ng', 'nl', 'no', 'nyc', 'pl', 'pt', 'punjabi', 'romd', 'rs', 'ru', - 'se', 'tr', 'ua', 'uk', 've', 'wb', + 'ge', 'gr', 'hi', 'id', 'id-internal', 'il', 'mai', 'mk', 'mx', 'ng', + 'nl', 'no', 'nyc', 'pl', 'pt', 'punjabi', 'romd', 'rs', 'ru', 'se', + 'tr', 'ua', 'uk', 've', 'wb', ]
@classproperty diff --git a/pywikibot/families/wikinews_family.py b/pywikibot/families/wikinews_family.py index 0b0bc10..6b3631b 100644 --- a/pywikibot/families/wikinews_family.py +++ b/pywikibot/families/wikinews_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index 9809bf9..b5740c4 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
@@ -31,34 +29,34 @@
languages_by_size = [ 'en', 'ceb', 'sv', 'de', 'fr', 'nl', 'ru', 'it', 'es', 'pl', 'war', - 'vi', 'ja', 'zh', 'ar', 'pt', 'uk', 'arz', 'fa', 'ca', 'sr', 'no', - 'id', 'ko', 'fi', 'hu', 'cs', 'sh', 'ro', 'zh-min-nan', 'eu', 'tr', + 'vi', 'ja', 'zh', 'ar', 'pt', 'uk', 'arz', 'fa', 'ca', 'sr', 'id', + 'no', 'ko', 'fi', 'hu', 'cs', 'sh', 'ro', 'zh-min-nan', 'eu', 'tr', 'ms', 'eo', 'ce', 'hy', 'he', 'bg', 'da', 'azb', 'sk', 'kk', 'min', 'hr', 'et', 'lt', 'be', 'el', 'sl', 'simple', 'gl', 'az', 'ur', 'nn', 'hi', 'th', 'ka', 'uz', 'la', 'cy', 'ta', 'vo', 'tt', 'ast', 'mk', 'lv', 'tg', 'mg', 'af', 'bn', 'zh-yue', 'oc', 'bs', 'sq', 'ky', 'new', - 'tl', 'be-tarask', 'te', 'ml', 'nds', 'br', 'pms', 'su', 'sw', 'ht', - 'lb', 'vec', 'jv', 'mr', 'sco', 'pnb', 'ga', 'ba', 'szl', 'is', 'my', + 'tl', 'be-tarask', 'nds', 'te', 'ml', 'br', 'pms', 'su', 'sw', 'ht', + 'lb', 'vec', 'mr', 'jv', 'sco', 'pnb', 'ga', 'ba', 'szl', 'is', 'my', 'fy', 'cv', 'lmo', 'an', 'wuu', 'pa', 'ne', 'yo', 'bar', 'ku', 'io', - 'gu', 'als', 'ckb', 'kn', 'scn', 'bpy', 'ia', 'qu', 'diq', 'mn', - 'bat-smg', 'or', 'si', 'nv', 'cdo', 'ilo', 'yi', 'gd', 'am', 'nap', + 'gu', 'als', 'ckb', 'kn', 'scn', 'diq', 'bpy', 'ia', 'qu', 'mn', + 'bat-smg', 'or', 'nv', 'si', 'cdo', 'ilo', 'yi', 'gd', 'am', 'nap', 'bug', 'xmf', 'wa', 'sd', 'hsb', 'mai', 'map-bms', 'fo', 'mzn', 'li', 'sah', 'eml', 'os', 'ps', 'sa', 'frr', 'bcl', 'zh-classical', 'ace', - 'mrj', 'mhr', 'hif', 'hak', 'roa-tara', 'pam', 'nso', 'km', 'hyw', - 'se', 'rue', 'crh', 'bh', 'shn', 'vls', 'gor', 'mi', 'nds-nl', 'as', + 'mrj', 'mhr', 'hif', 'hak', 'roa-tara', 'pam', 'hyw', 'nso', 'km', + 'rue', 'se', 'crh', 'gor', 'bh', 'shn', 'vls', 'mi', 'as', 'nds-nl', 'nah', 'sc', 'vep', 'gan', 'myv', 'ab', 'glk', 'bo', 'co', 'so', 'tk', 'sn', 'fiu-vro', 'lrc', 'csb', 'kv', 'ha', 'gv', 'ie', 'udm', 'ay', - 'pcd', 'zea', 'kab', 'nrm', 'ug', 'lez', 'kw', 'stq', 'haw', 'frp', - 'lij', 'lfn', 'mwl', 'gn', 'gom', 'rm', 'sat', 'mt', 'lad', 'lo', - 'koi', 'fur', 'olo', 'dty', 'ang', 'dsb', 'ext', 'ln', 'bjn', 'ban', - 'cbk-zam', 'dv', 'ksh', 'gag', 'zu', 'pfl', 'tyv', 'pag', 'pi', 'av', - 'awa', 'bxr', 'xal', 'krc', 'pap', 'za', 'pdc', 'kaa', 'rw', 'arc', - 'szy', 'to', 'nov', 'jam', 'tpi', 'kbp', 'kbd', 'ig', 'na', 'tet', - 'wo', 'tcy', 'ki', 'inh', 'jbo', 'atj', 'bi', 'roa-rup', 'lbe', 'kg', + 'pcd', 'zea', 'kab', 'nrm', 'ug', 'kw', 'lez', 'lij', 'stq', 'haw', + 'frp', 'sat', 'lfn', 'mwl', 'gn', 'gom', 'rm', 'mt', 'lo', 'lad', + 'koi', 'fur', 'olo', 'ang', 'dty', 'dsb', 'zu', 'bjn', 'ext', 'ln', + 'ban', 'cbk-zam', 'dv', 'ksh', 'gag', 'pfl', 'tyv', 'pag', 'pi', 'av', + 'awa', 'bxr', 'xal', 'krc', 'pap', 'za', 'pdc', 'kaa', 'rw', 'szy', + 'arc', 'to', 'nov', 'jam', 'tpi', 'kbp', 'kbd', 'ig', 'na', 'tet', + 'inh', 'wo', 'tcy', 'ki', 'jbo', 'atj', 'roa-rup', 'bi', 'lbe', 'kg', 'ty', 'mdf', 'lg', 'srn', 'xh', 'gcr', 'fj', 'ltg', 'chr', 'sm', 'ak', - 'got', 'kl', 'pih', 'om', 'cu', 'tn', 'tw', 'st', 'ts', 'ny', 'rmy', - 'bm', 'nqo', 'chy', 'rn', 'mnw', 'tum', 'ss', 'ch', 'pnt', 'iu', 'ady', - 'ks', 've', 'ee', 'ik', 'sg', 'ff', 'ti', 'dz', 'din', 'cr', 'ary', + 'got', 'kl', 'pih', 'om', 'cu', 'ny', 'tn', 'tw', 'st', 'ts', 'rmy', + 'bm', 'nqo', 'chy', 'rn', 'mnw', 'tum', 'ss', 'ch', 'iu', 'pnt', 'ady', + 'ks', 've', 'ee', 'ik', 'sg', 'ff', 'ti', 'dz', 'cr', 'din', 'ary', ]
# Sites we want to edit but not count as real languages @@ -244,4 +242,4 @@ return 'utf-8', 'iso8859-5' if code in self.latin1old: return 'utf-8', 'iso-8859-1' - return super(Family, self).encodings(code) + return super().encodings(code) diff --git a/pywikibot/families/wikiquote_family.py b/pywikibot/families/wikiquote_family.py index 6c7b1ce..3cf87f3 100644 --- a/pywikibot/families/wikiquote_family.py +++ b/pywikibot/families/wikiquote_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
@@ -34,8 +32,8 @@ 'sk', 'bs', 'ca', 'fi', 'tr', 'sl', 'lt', 'az', 'eo', 'zh', 'bg', 'hr', 'hy', 'el', 'su', 'id', 'nn', 'ar', 'et', 'sv', 'li', 'hu', 'ko', 'th', 'nl', 'ja', 'la', 'ta', 'sah', 'sr', 'gu', 'gl', 'ur', 'te', 'be', - 'cy', 'no', 'ml', 'kn', 'sq', 'ro', 'ku', 'eu', 'uz', 'hi', 'ka', 'da', - 'sa', 'is', 'vi', 'br', 'mr', 'af', 'ky', 'wo', + 'cy', 'no', 'ml', 'sq', 'kn', 'ro', 'ku', 'eu', 'uz', 'hi', 'ka', 'da', + 'sa', 'is', 'vi', 'br', 'mr', 'af', 'wo', 'ky', ]
category_redirect_templates = { @@ -80,4 +78,4 @@ return 'utf-8', 'iso8859-2' if code == 'ru': return 'utf-8', 'iso8859-5' - return super(Family, self).encodings(code) + return super().encodings(code) diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py index 99968ce..52086bf 100644 --- a/pywikibot/families/wikisource_family.py +++ b/pywikibot/families/wikisource_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import classproperty
@@ -28,12 +26,12 @@ ]
languages_by_size = [ - 'pl', 'en', 'ru', 'de', 'fr', 'zh', 'he', 'it', 'es', 'ar', 'cs', 'pt', - 'mul', 'gu', 'uk', 'fa', 'sr', 'hu', 'sv', 'ml', 'ko', 'bn', 'sa', + 'pl', 'en', 'ru', 'de', 'fr', 'zh', 'he', 'it', 'es', 'ar', 'uk', 'cs', + 'mul', 'pt', 'gu', 'fa', 'sr', 'hu', 'sv', 'ml', 'ko', 'bn', 'sa', 'hy', 'sl', 'te', 'el', 'ta', 'ro', 'fi', 'ja', 'th', 'nap', 'vi', - 'az', 'la', 'br', 'ca', 'tr', 'nl', 'kn', 'hr', 'eo', 'no', 'is', - 'vec', 'pms', 'et', 'be', 'da', 'mk', 'id', 'yi', 'bg', 'mr', 'as', - 'li', 'hi', 'lt', 'or', 'eu', 'pa', 'gl', 'bs', 'sah', 'sk', 'cy', + 'az', 'br', 'la', 'tr', 'ca', 'nl', 'kn', 'hr', 'eo', 'no', 'is', + 'vec', 'pms', 'et', 'be', 'da', 'id', 'mk', 'yi', 'bg', 'mr', 'as', + 'li', 'hi', 'lt', 'eu', 'or', 'pa', 'gl', 'bs', 'sah', 'sk', 'cy', 'zh-min-nan', 'fo', 'lij', ]
diff --git a/pywikibot/families/wikitech_family.py b/pywikibot/families/wikitech_family.py index b75cf86..b7b0a0b 100644 --- a/pywikibot/families/wikitech_family.py +++ b/pywikibot/families/wikitech_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikitech.""" # -# (C) Pywikibot team, 2005-2018 +# (C) Pywikibot team, 2005-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/wikiversity_family.py b/pywikibot/families/wikiversity_family.py index f79b1a0..3453f47 100644 --- a/pywikibot/families/wikiversity_family.py +++ b/pywikibot/families/wikiversity_family.py @@ -1,12 +1,10 @@ # -*- coding: utf-8 -*- """Family module for Wikiversity.""" # -# (C) Pywikibot team, 2007-2018 +# (C) Pywikibot team, 2007-2020 # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import classproperty
@@ -19,7 +17,7 @@ name = 'wikiversity'
languages_by_size = [ - 'de', 'en', 'fr', 'zh', 'ru', 'it', 'cs', 'pt', 'es', 'sv', 'sl', 'fi', + 'de', 'en', 'fr', 'ru', 'zh', 'it', 'cs', 'pt', 'es', 'sv', 'sl', 'fi', 'ar', 'el', 'hi', 'ko', 'ja', ]
@@ -27,7 +25,7 @@
@classproperty def code_aliases(cls): - cls.code_aliases = super(Family, cls).code_aliases.copy() + cls.code_aliases = super().code_aliases.copy() cls.code_aliases['mul'] = 'beta' return cls.code_aliases
diff --git a/pywikibot/families/wikivoyage_family.py b/pywikibot/families/wikivoyage_family.py index da8885f..655459b 100644 --- a/pywikibot/families/wikivoyage_family.py +++ b/pywikibot/families/wikivoyage_family.py @@ -1,13 +1,11 @@ # -*- coding: utf-8 -*- """Family module for Wikivoyage.""" # -# (C) Pywikibot team, 2012-2018 +# (C) Pywikibot team, 2012-2020 # # Distributed under the terms of the MIT license. # # The new wikivoyage family that is hosted at wikimedia -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family
diff --git a/pywikibot/families/wiktionary_family.py b/pywikibot/families/wiktionary_family.py index 58a9ca2..3a09fbe 100644 --- a/pywikibot/families/wiktionary_family.py +++ b/pywikibot/families/wiktionary_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import classproperty
@@ -40,11 +38,11 @@ 'af', 'zh-min-nan', 'he', 'scn', 'tl', 'pa', 'sw', 'fy', 'nn', 'bn', 'lv', 'sq', 'ka', 'co', 'mn', 'pnb', 'min', 'sl', 'lb', 'nds', 'bs', 'nah', 'sa', 'kk', 'ms', 'km', 'vec', 'tk', 'sm', 'be', 'mk', 'hsb', - 'yue', 'gd', 'ga', 'an', 'wo', 'ang', 'shy', 'ia', 'tt', 'mt', 'sd', - 'gn', 'mr', 'ie', 'so', 'csb', 'ug', 'fo', 'st', 'roa-rup', 'si', - 'hif', 'kl', 'su', 'ay', 'mi', 'zu', 'jbo', 'ln', 'yi', 'gu', 'na', + 'yue', 'gd', 'ga', 'an', 'wo', 'ang', 'gom', 'shy', 'ia', 'tt', 'mt', + 'sd', 'gn', 'mr', 'ie', 'so', 'csb', 'ug', 'fo', 'st', 'roa-rup', 'si', + 'hif', 'kl', 'zu', 'su', 'ay', 'mi', 'jbo', 'ln', 'yi', 'gu', 'na', 'gv', 'kw', 'tpi', 'rw', 'ts', 'ne', 'om', 'qu', 'ss', 'ha', 'iu', - 'am', 'dv', 'sg', 'ti', 'tn', 'gom', 'ks', 'shn', + 'am', 'dv', 'sg', 'ti', 'tn', 'ks', 'shn', ]
category_redirect_templates = { diff --git a/pywikibot/families/wowwiki_family.py b/pywikibot/families/wowwiki_family.py index 47466ad..fa6dac1 100644 --- a/pywikibot/families/wowwiki_family.py +++ b/pywikibot/families/wowwiki_family.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import deprecated, classproperty
@@ -39,12 +37,12 @@ """Return the version for this family.""" if code == 'es': return '1.33.1' - return super(Family, self).version(code) + return super().version(code)
@classproperty def langs(cls): """Property listing family languages.""" - cls.langs = super(Family, cls).langs + cls.langs = super().langs # override deviations for i, lang in enumerate(['es', 'et', 'sv'], start=1): cls.langs[lang] = cls.domains[i] @@ -54,8 +52,7 @@ @classproperty def disambiguationTemplates(cls): # noqa: N802 """Property listing disambiguation templates.""" - cls.disambiguationTemplates = \ - super(Family, cls).disambiguationTemplates + cls.disambiguationTemplates = super().disambiguationTemplates cls.disambiguationTemplates['en'] = ['disambig', 'disambig/quest', 'disambig/quest2', 'disambig/achievement2'] @@ -64,7 +61,7 @@ @classproperty def disambcatname(cls): """Property listing disambiguation category name.""" - cls.disambcatname = super(Family, cls).disambcatname + cls.disambcatname = super().disambcatname cls.disambcatname['en'] = 'Disambiguations' return cls.disambcatname
@@ -86,4 +83,4 @@ """Return the script path for this family.""" if code == 'es': return '' - return super(Family, self).scriptpath(code) + return super().scriptpath(code)
pywikibot-commits@lists.wikimedia.org