jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/612841 )
Change subject: [bugfix] Solve TypeError of RepeatingGenerator ......................................................................
[bugfix] Solve TypeError of RepeatingGenerator
A generator is not reversible.
Change-Id: Ic33cbba2db5db62d97318c0812bf51147facdfb1 --- M pywikibot/pagegenerators.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index f0f84c2..b6eeed8 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -2185,7 +2185,7 @@ break pywikibot.sleep(sleep_duration)
- yield from reversed(filtered_generator()) + yield from reversed(list(filtered_generator()))
@deprecated_args(pageNumber='groupsize', step='groupsize', lookahead=None)
pywikibot-commits@lists.wikimedia.org