jenkins-bot submitted this change.
[cleanup] Remove interwiki_forwarded_from list from family files
interwiki_forwarded_from was implemented in compat but that feature wasn't
merged into the already existing core titletranslate.py. As a result,
interwiki_forwarded_from is unimplemented in core.
titletranslate is used by interwiki.py only which is used very rare
(is it still used?). Nobody missed this feature for so many years
and it can be removed then.
Bug: T104125
Change-Id: I5bd27becb735c2ecd817a3c27490dfeeca0fa948
---
M pywikibot/families/wikipedia_family.py
M pywikibot/family.py
2 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py
index 6cb6994..e4c51b4 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -110,18 +110,6 @@
'zh-yue': ('分類彈去',),
}
- # families that redirect their interlanguage links here.
- interwiki_forwarded_from = [
- 'commons',
- 'incubator',
- 'mediawiki',
- 'meta',
- 'outreach',
- 'species',
- 'test',
- 'wikimania'
- ]
-
# Global bot allowed languages on
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
# & https://meta.wikimedia.org/wiki/Special:WikiSets/2
diff --git a/pywikibot/family.py b/pywikibot/family.py
index b46f381..49066c1 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -535,12 +535,6 @@
# family.
interwiki_forward = None
- # Some families, e. g. wikipedia, receive forwarded interlanguage
- # links from other families, e. g. incubator, commons, or meta.
- # These families can set this variable to the names of their source
- # families.
- interwiki_forwarded_from = {}
-
# Which language codes no longer exist and by which language code
# should they be replaced. If for example the language with code xx:
# now should get code yy:, add {'xx':'yy'} to obsolete.
To view, visit change 618224. To unsubscribe, or for help writing mail filters, visit settings.