https://bugzilla.wikimedia.org/show_bug.cgi?id=71738
Bug ID: 71738 Summary: API to use Warning system Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: network Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
Currently the API module uses a custom warning system, and some parts of the codebase dont correctly handle multiple warnings:
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/9ca1b85c367b381947426c261...
The API should be migrated to using the Python core warning system
https://docs.python.org/2/library/warnings.html#warnings.warn