jenkins-bot submitted this change.
[bugfix] Enable -interwiki option with pagegenerators.py
- pagegenerators -interwiki is decribed to work on the given page and
all equivalent pages in other languages. But the called generator is
InterwikiPageGenerator which does not yield pages as expected and the
result is mostly empty. Use LanguageLinksPageGenerator instead.
- Together with add_text this option can be used to put the same text
on the same page in other wikis.
Bug: T57099
Change-Id: Iac4d7405fb954df83d4bf60711c57728e999bc56
---
M pywikibot/pagegenerators.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index 5be66b9..072ef0a 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -882,7 +882,7 @@
'pywikibot-enter-page-processing',
fallback_prompt='Which page should be processed?')
page = pywikibot.Page(pywikibot.Link(value, self.site))
- return InterwikiPageGenerator(page)
+ return LanguageLinksPageGenerator(page)
def _handle_randomredirect(self, value):
"""Handle `-randomredirect` argument."""
To view, visit change 700383. To unsubscribe, or for help writing mail filters, visit settings.