jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/510698 )
Change subject: [cleanup] Simpliy generate_family_file.getlangs ......................................................................
[cleanup] Simpliy generate_family_file.getlangs
Change-Id: I0d9d3f4f9129281974aa6eed64e85d409954a9ff --- M generate_family_file.py 1 file changed, 3 insertions(+), 5 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/generate_family_file.py b/generate_family_file.py index 97eac88..c529be6 100755 --- a/generate_family_file.py +++ b/generate_family_file.py @@ -91,8 +91,9 @@ else: makeiw = self.dointerwiki
- if makeiw == 'y': - pass + if makeiw == 'n': + self.langs = [wiki for wiki in self.langs + if wiki['url'] == w.iwpath] elif makeiw == 'e': for wiki in self.langs: print(wiki['prefix'], wiki['url']) @@ -100,9 +101,6 @@ self.langs = [wiki for wiki in self.langs if wiki['prefix'] in do_langs or wiki['url'] == w.iwpath] - else: - self.langs = [wiki for wiki in self.langs - if wiki['url'] == w.iwpath]
def getapis(self): """Load other language pages."""