jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462471 )
Change subject: [IMPR] Derive ArgumentDeprecationWarning from FutureWarning ......................................................................
[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(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
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."""
pywikibot-commits@lists.wikimedia.org