jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, but someone else must approve JJMC89: Looks good to me, approved jenkins-bot: Verified
[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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iac4d7405fb954df83d4bf60711c57728e999bc56
Gerrit-Change-Number: 700383
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged