import warnings
warnings.warn('change me')
The warning is issued:
hunter:~/python/test> python test.py
test.py:3: UserWarning: change me
warnings.warn('change me')
I want to supress the line echo. Eg, I just want
hunter:~/python/test> python test.py
test.py:3: UserWarning: change me
How do I configure warnings to do this?
Thanks!
John Hunter