jenkins-bot merged this change.
[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(-)
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
To view, visit change 462142. To unsubscribe, or for help writing mail filters, visit settings.