jenkins-bot merged this change.

View Change

Approvals: Zoranzoki21: Looks good to me, but someone else must approve Dvorapa: Looks good to me, approved jenkins-bot: Verified
[bugfix] Enable -limit/-total option

Bug: T216608
Change-Id: If5314ffeae90ff9560b7a6d0acc0debb1fc76303
---
M scripts/redirect.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/redirect.py b/scripts/redirect.py
index 2d77de4..d7a9721 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -743,7 +743,7 @@
elif option in ('page', 'start', 'until'):
gen_options[option] = value
elif option in ('limit', 'total'):
- option['limit'] = gen_options['limit'] = int(value)
+ options['limit'] = gen_options['limit'] = int(value)
if option == 'total':
issue_deprecation_warning('The usage of "{0}"'.format(arg),
'-limit', 2,

To view, visit change 491735. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If5314ffeae90ff9560b7a6d0acc0debb1fc76303
Gerrit-Change-Number: 491735
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)