jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462142 )
Change subject: [cleanup] Always show deprecation warning for -dry option in basic.py ......................................................................
[cleanup] Always show deprecation warning for -dry option in basic.py
- DeprecationWarning is hidden by default. Show FutureWarning instead which is intended for end users https://docs.python.org/3/library/exceptions.html#FutureWarning
Bug: T205190 Change-Id: I426d3caef2837f9cb3de1006d1da5b33e9f34e50 --- M scripts/basic.py 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/basic.py b/scripts/basic.py index 71d14fe..e5cd63d 100755 --- a/scripts/basic.py +++ b/scripts/basic.py @@ -114,6 +114,7 @@ if 'dry' in kwargs: issue_deprecation_warning('dry argument', 'pywikibot.config.simulate', 1, + warning_class=FutureWarning, since='20160124') # use simulate variable instead pywikibot.config.simulate = True
pywikibot-commits@lists.wikimedia.org