jenkins-bot merged this change.
[cleanup] Simpliy generate_family_file.getlangs
Change-Id: I0d9d3f4f9129281974aa6eed64e85d409954a9ff
---
M generate_family_file.py
1 file changed, 3 insertions(+), 5 deletions(-)
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."""
To view, visit change 510698. To unsubscribe, or for help writing mail filters, visit settings.