Xqt has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/402587 )
Change subject: [bugfix] show deprecation warning ...................................................................... [bugfix] show deprecation warning A warning level > 1 isn't be shown in some cases. Bug: T184337 Change-Id: Ib7483d83c735db34b8518c002cd4349d64a12ac6 --- M pywikibot/tools/__init__.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/87/402587/1 diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index b9c99e0..68903e4 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Miscellaneous helper functions (not wiki-dependent).""" # -# (C) Pywikibot team, 2008-2017 +# (C) Pywikibot team, 2008-2018 # # Distributed under the terms of the MIT license. # @@ -1746,7 +1746,7 @@ warning_message = self._deprecated[attr][2] warn(warning_message.format(self._module.__name__, attr, self._deprecated[attr][0]), - DeprecationWarning, 2) + DeprecationWarning, 1) if self._deprecated[attr][1]: return self._deprecated[attr][1] elif '.' in self._deprecated[attr][0]: -- To view, visit https://gerrit.wikimedia.org/r/402587 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib7483d83c735db34b8518c002cd4349d64a12ac6 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits