https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
Bug ID: 70970 Summary: use DeprecationWarning system Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
pywikibot includes a lot of deprecation methods and parameters to support old code. The deprecation messages are logged using the normal python logging system, but are not routed through warnings.DeprecationWarning, which allows command line control over whether they are displayed (and defaults to not being displayed)
https://docs.python.org/2/library/warnings.html#warnings.warn
https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |70936
https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=71738
https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High Severity|normal |major
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- The deprecation notices are too noisy - users with custom scripts get scared when their screen is full of repetitive warnings.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70970
Sorawee Porncharoenwase nullzero.free@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nullzero.free@gmail.com
--- Comment #2 from Sorawee Porncharoenwase nullzero.free@gmail.com --- For me, I prefer to see repetitive warnings which indicate that I should fix my script. Also, I strongly disagree that warning should not be displayed by default. The purpose of warning is to let users know explicitly. If something needs not to show to users, then switch to .debug instead (which will only show in verbose mode).
pywikipedia-bugs@lists.wikimedia.org