jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[cleanup] Remove deprecation warning for ignore_warnings/report_success

This warning is not clear and the parameters should be rethinked at all.

Bug: T271899
Change-Id: Ifd5f895e26465c6b270d4b2dfa8ce9f70a94ca66
---
M pywikibot/site/_apisite.py
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 1101c30..cc8518a 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -74,7 +74,6 @@
MediaWikiVersion,
compute_file_hash,
deprecated,
- issue_deprecation_warning,
merge_unique_dicts,
normalize_username,
)
@@ -2640,11 +2639,6 @@
if not isinstance(ignore_warnings, bool):
raise ValueError('report_success may only be set to True when '
'ignore_warnings is a boolean')
- issue_deprecation_warning('"ignore_warnings" as a boolean and '
- '"report_success" is True or None',
- '"report_success=False" or define '
- '"ignore_warnings" as callable/iterable',
- 3, since='20150823')
if isinstance(ignore_warnings, Iterable):
ignored_warnings = ignore_warnings


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ifd5f895e26465c6b270d4b2dfa8ce9f70a94ca66
Gerrit-Change-Number: 758046
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged