Closed navytux closed 1 year ago
The last usage of WarningsHook was removed in 2011 in f1b04dd8 (Lots of code cleanups.). And when we need to capture warnings there is warnings.catch_warnings that is available out of the box from stdlib on both py2 and py3.
warnings.catch_warnings
Thanks, Dieter.
The last usage of WarningsHook was removed in 2011 in f1b04dd8 (Lots of code cleanups.). And when we need to capture warnings there is
warnings.catch_warnings
that is available out of the box from stdlib on both py2 and py3.