jenkins-bot has submitted this change and it was merged.
Change subject: wikimedia chapter family countrylangs is unused
......................................................................
wikimedia chapter family countrylangs is unused
This datastructure was used in compat to replicate the site namespaces
for a country coded wiki from a namespaces of a language.
Namespaces are dynamic in core.
Change-Id: Ib401d988b330df97eefa7228d8a3ccfb45ad58e0
---
M pywikibot/families/wikimediachapter_family.py
1 file changed, 0 insertions(+), 7 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
Ricordisamoa: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/families/wikimediachapter_family.py b/pywikibot/families/wikimediachapter_family.py
index b240954..26890c0 100644
--- a/pywikibot/families/wikimediachapter_family.py
+++ b/pywikibot/families/wikimediachapter_family.py
@@ -21,12 +21,5 @@
'nyc', 'pl', 'rs', 'ru', 'se', 'ua', 'uk', 've',
]
- self.countrylangs = {
- 'ar': 'es', 'br': 'pt-br', 'bd': 'bn', 'co': 'es', 'dk': 'da',
- 'fi': 'fi', 'mk': 'mk', 'mx': 'es', 'nl': 'nl', 'no': 'no',
- 'nyc': 'en', 'pl': 'pl', 'rs': 'sr', 'ru': 'ru', 'se': 'sv',
- 'ua': 'uk', 'uk': 'en-gb', 've': 'en',
- }
-
self.langs = dict([(country, '%s.wikimedia.org' % country)
for country in self.countries])
--
To view, visit https://gerrit.wikimedia.org/r/219606
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib401d988b330df97eefa7228d8a3ccfb45ad58e0
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: Family attribute namespacesWithSubpage is unused
......................................................................
Family attribute namespacesWithSubpage is unused
A relic from compat
Bug: T89451
Change-Id: I42a119c736e7c6bdb494c2b22c18254289ca5a72
---
M pywikibot/family.py
1 file changed, 0 insertions(+), 4 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
Ricordisamoa: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 7343d37..6c2e071 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -132,8 +132,6 @@
self.fyinterwiki.sort(key=lambda x:
x.replace("y", "i") + x.count("y") * "!")
- self.namespacesWithSubpage = [2] + list(range(1, 16, 2))
-
# letters that can follow a wikilink and are regarded as part of
# this link
# This depends on the linktrail setting in LanguageXx.php and on
@@ -1452,8 +1450,6 @@
def __init__(self):
super(WikimediaFamily, self).__init__()
-
- self.namespacesWithSubpage.extend([4, 12])
# CentralAuth cross avaliable projects.
self.cross_projects = [
--
To view, visit https://gerrit.wikimedia.org/r/219610
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I42a119c736e7c6bdb494c2b22c18254289ca5a72
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: jenkins-bot <>