Last modified: 2014-10-07 07:26:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73738, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71738 - API to use Warning system
API to use Warning system
Status: NEW
Product: Pywikibot
Classification: Unclassified
network (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwb20
  Show dependency treegraph
 
Reported: 2014-10-07 07:25 UTC by John Mark Vandenberg
Modified: 2014-10-07 07:26 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-10-07 07:25:32 UTC
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/9ca1b85c367b381947426c2615f4ab246e497518/pywikibot%2Fsite.py#L4167

The API should be migrated to using the Python core warning system

https://docs.python.org/2/library/warnings.html#warnings.warn

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links