jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[IMPR] Derive ArgumentDeprecationWarning from FutureWarning

Derive ArgumentDeprecationWarning from FutureWarning which is recommended
for warnings intended to be seen by application end users. Keep inheritance
from UserWarning for backward compatibility.

Change-Id: I6f3fdb9b01b1460e28c379b1804278843fb30c0e
---
M pywikibot/exceptions.py
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index cdadc09..1be8d9a 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -81,7 +81,7 @@
- FamilyMaintenanceWarning: missing information in family definition
"""
#
-# (C) Pywikibot team, 2008-2019
+# (C) Pywikibot team, 2008-2020
#
# Distributed under the terms of the MIT license.
#
@@ -104,7 +104,7 @@
pass


-class ArgumentDeprecationWarning(UserWarning):
+class ArgumentDeprecationWarning(UserWarning, FutureWarning):

"""Command line argument that is no longer supported."""


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6f3fdb9b01b1460e28c379b1804278843fb30c0e
Gerrit-Change-Number: 462471
Gerrit-PatchSet: 6
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Mpaa <mpaa.wiki@gmail.com>
Gerrit-CC: Zoranzoki21 <zorandori4444@gmail.com>