Dalba added a comment.

@Dalba What about this comment above:

Also no warning is shown for the given example:

from pywikibot.exceptions import UploadWarning

?

Works for me.

Note that in python 3.2+ DeprecationWarnings are ignored by default. One has to change the default filters either via the command line:

$ python -Wa::DeprecationWarning test_module.py

or from within the code:

from warnings import simplefilter
simplefilter('default', DeprecationWarning)
from pywikibot.exceptions import UploadWarning

TASK DETAIL
https://phabricator.wikimedia.org/T184337

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: gerritbot, Dvorapa, jayvdb, Aklapper, XZise, Xqt, pywikibot-bugs-list, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, rafidaslam, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to