jenkins-bot has submitted this change and it was merged.
Change subject: Remove unused Family._addlang
......................................................................
Remove unused Family._addlang
It is a private method that is also unused in compat.
Bug: T89451
Change-Id: I00fae9771963629a60e9d3744442d972492cf054
---
M pywikibot/family.py
1 file changed, 0 insertions(+), 10 deletions(-)
Approvals:
XZise: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 6c2e071..a4634fc 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -943,16 +943,6 @@
return list(pywikibot.Family(self.interwiki_forward).langs.keys())
return list(self.langs.keys())
- def _addlang(self, code, location, namespaces={}):
- """
- Add a new language to the langs and namespaces of the family.
-
- This is supposed to be called in the constructor of the family.
- """
- self.langs[code] = location
-# for num, val in namespaces.items():
-# self.namespaces[num][code] = val
-
def get_known_families(self, site):
return self.known_families
--
To view, visit https://gerrit.wikimedia.org/r/219822
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I00fae9771963629a60e9d3744442d972492cf054
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits