jenkins-bot merged this change.
[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.