jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/484016 )
Change subject: [bugfix] "-step" is a global option, not needed to deprecate it ......................................................................
[bugfix] "-step" is a global option, not needed to deprecate it
"-step" is a global option handled by pywikibot.handle_args.
This also solves the missing "instead" parameter for issue_deprecation_warning
Change-Id: I595b6a022ca7a02f5d07aebfc5bd792221ce03b3 --- M scripts/redirect.py 1 file changed, 0 insertions(+), 7 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py index 311c8b9..3c962b4 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -87,9 +87,7 @@ from pywikibot import i18n, xmlreader from pywikibot.bot import (OptionHandler, SingleSiteBot, ExistingPageBot, RedirectPageBot) -from pywikibot.exceptions import ArgumentDeprecationWarning from pywikibot.textlib import extract_templates_and_params_regex_simple -from pywikibot.tools import issue_deprecation_warning
if sys.version_info[0] > 2: basestring = (str, ) @@ -744,11 +742,6 @@ gen_options[option] = int(value) elif option in ('page', 'start', 'until'): gen_options[option] = value - # deprecated or unknown options - elif option == 'step': - issue_deprecation_warning('The usage of "{0}"'.format(arg), - 2, ArgumentDeprecationWarning, - since='20160210') else: pywikibot.output('Unknown argument: ' + arg)