jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/655878 )
Change subject: Don't print a FutureWarning until T271899 is solved
......................................................................
Don't print a FutureWarning until T271899 is solved
Following the Deprecation/FutureWarning in APISite.upload() will
raise a ValueError if ignore_warnings is boolean and report_success
is set by default. Therefore don't show a FutureWarning anymore until
T271899 has been solved finally.
Bug: T271899
Change-Id: I8c17f44e910ab2399a5ad1daf4c1203fd994ac8b
---
M pywikibot/site/__init__.py
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index 348f34d..86394f6 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -4472,8 +4472,7 @@
'"report_success" is True or None',
'"report_success=False" or define '
'"ignore_warnings" as callable/iterable',
- 3, warning_class=FutureWarning,
- since='20150823')
+ 3, since='20150823')
if isinstance(ignore_warnings, Iterable):
ignored_warnings = ignore_warnings
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/655878
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8c17f44e910ab2399a5ad1daf4c1203fd994ac8b
Gerrit-Change-Number: 655878
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits