How to suppress "DeprecationWarning: Old style callback, use cb_func(ok, store) instead"
Peter Otten
__peter__ at web.de
Sat Feb 3 04:12:33 EST 2007
John Nagle wrote:
> How do I suppress "DeprecationWarning: Old style callback, use
> cb_func(ok,
> store) instead". A library is triggering this message, the library is
> being fixed, but I need to make the message disappear from the output of a
> CGI program.
import warnings
warnings.filterwarnings("ignore", message="Old style callback, use
cb_func(ok, store) instead")
Peter
More information about the Python-list
mailing list