In Python 2.6, you can suppress warnings from the alert module using
with warnings.catch_warnings(): warnings.simplefilter("ignore") fxn()
Versions of Python prior to version 2.6 do not support with , so I wonder if there are alternatives to the above that will work with versions prior to 2.6?
python warnings suppress-warnings
astrofrog
source share