Advertisement
oort77

ignore warnings with some content

Jun 30th, 2022 (edited)
726
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import warnings
  2. warnings.filterwarnings('ignore', '.*deprecate.*', )
  3.  
  4. # or
  5.  
  6. python -W warningsexample.py
Advertisement
RAW Paste Data Copied
Advertisement