jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Remove crossnamespaces out of the scope ......................................................................
[FIX] Remove crossnamespaces out of the scope
crossnamespace is used on Wikipedia and Wikisource projects only. interwiki.py is the only script which uses it. But Wikipedia and Wikisource projects have wikibase support and don't need it anymore.
Bug: T75170 Change-Id: I931e0ff66069d172107d4f91c6bff3bb6fffaba6 --- M pywikibot/families/wikipedia_family.py M pywikibot/families/wikisource_family.py 2 files changed, 0 insertions(+), 159 deletions(-)
Approvals: XZise: Looks good to me, but someone else must approve Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index 1caf63c..5190f33 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -365,161 +365,6 @@ 'nds', 'co', 'mi', 'mr', 'id', 'lv', 'sw', 'tt', 'uk', 'vo', 'ga', 'na', 'es', 'nl', 'da', 'dk', 'sv', 'test']
- self.crossnamespace[0] = { - '_default': { - 'pt': [102], - 'als': [104], - 'ar': [104], - 'de': [4], - 'en': [12], - 'es': [104], - 'fi': [4], - 'fr': [104], - 'hr': [102], - 'lt': [104], - }, - 'km': { - '_default': [0, 4, 12], - }, - # wrong wikipedia namespace alias - 'mzn': { - '_default': [0, 4], - - }, - } - self.crossnamespace[1] = { - '_default': { - 'pt': [103], - 'als': [105], - 'ar': [105], - 'en': [13], - 'es': [105], - 'fi': [5], - 'fr': [105], - 'hr': [103], - 'lt': [105], - }, - } - self.crossnamespace[4] = { - '_default': { - '_default': [12], - }, - 'de': { - '_default': [0, 10, 12], - 'el': [100, 12], - 'es': [104, 12], - }, - 'fi': { - '_default': [0, 12] - }, - 'mzn': { - '_default': [0, 12] - }, - } - self.crossnamespace[5] = { - 'fi': { - '_default': [1]} - } - self.crossnamespace[12] = { - '_default': { - '_default': [4], - }, - 'en': { - '_default': [0, 4], - }, - } - self.crossnamespace[13] = { - 'en': { - '_default': [0], - }, - } - self.crossnamespace[102] = { - 'pt': { - '_default': [0], - 'als': [0, 104], - 'ar': [0, 104], - 'es': [0, 104], - 'fr': [0, 104], - 'lt': [0, 104] - }, - 'hr': { - '_default': [0], - 'als': [0, 104], - 'ar': [0, 104], - 'es': [0, 104], - 'fr': [0, 104], - 'lt': [0, 104] - }, - } - self.crossnamespace[103] = { - 'pt': { - '_default': [1], - 'als': [1, 105], - 'es': [1, 105], - 'fr': [1, 105], - 'lt': [1, 105] - }, - 'hr': { - '_default': [1], - 'als': [1, 105], - 'es': [1, 105], - 'fr': [1, 105], - 'lt': [1, 105] - }, - } - self.crossnamespace[104] = { - 'als': { - '_default': [0], - 'pt': [0, 102], - 'hr': [0, 102], - }, - 'ar': { - '_default': [0, 100], - 'hr': [0, 102], - 'pt': [0, 102], - }, - 'es': { - '_default': [0], - 'pt': [0, 102], - 'hr': [0, 102], - }, - 'fr': { - '_default': [0], - 'pt': [0, 102], - 'hr': [0, 102], - }, - 'lt': { - '_default': [0], - 'pt': [0, 102], - 'hr': [0, 102], - }, - } - self.crossnamespace[105] = { - 'als': { - '_default': [1], - 'pt': [0, 103], - 'hr': [0, 103], - }, - 'ar': { - '_default': [1, 101], - }, - 'es': { - '_default': [1], - 'pt': [0, 103], - 'hr': [0, 103], - }, - 'fr': { - '_default': [1], - 'pt': [0, 103], - 'hr': [0, 103], - }, - 'lt': { - '_default': [1], - 'pt': [0, 103], - 'hr': [0, 103], - }, - } - def get_known_families(self, site): """Override the family interwiki prefixes for each site.""" # In Swedish Wikipedia 's:' is part of page title not a family diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py index 8e47739..dc55fa8 100644 --- a/pywikibot/families/wikisource_family.py +++ b/pywikibot/families/wikisource_family.py @@ -92,10 +92,6 @@ 'zh': [102], }
- for key, values in self.authornamespaces.items(): - for item in values: - self.crossnamespace[item].update({key: self.authornamespaces}) - # Subpages for documentation. # TODO: List is incomplete, to be completed for missing languages. # TODO: Remove comments for appropriate pages
pywikibot-commits@lists.wikimedia.org