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
pywikibot-commits@lists.wikimedia.org