GNOME Bugzilla – Bug 696011
Derive PyGIDeprecationWarning from DeprecationWarning in stable releases
Last modified: 2013-03-18 07:58:30 UTC
The idea is to derive PyGIDeprecationWarning from RuntimeWarning for unstable and from DeprecationWarning for stable. Since DeprecationWarning is not shown by default, regular users would not be shown deprecation warnings coming from PyGObject in stable releases.
Created attachment 239080 [details] [review] Change base class of PyGIDeprecationWarning based on minor version Use RuntimeWarning as the base class of PyGIDeprecationWarning for unstable (odd minor version) and use DeprecationWarning for stable (even minor version). This is so PyGObject deprecations behave the same as regular Python deprecations in stable releases.
Comment on attachment 239080 [details] [review] Change base class of PyGIDeprecationWarning based on minor version I'm a bit torn here, as many application developers will use the stable releases. But for the sake of conservatism let's do this. Please push, so that it can go into today's 3.7.92 release.
Attachment 239080 [details] pushed as 669e15c - Change base class of PyGIDeprecationWarning based on minor version