# This filters ALL warnings, but you can also filter by category
import warnings
warnings.filterwarnings("ignore")
# Filtering by category:
warnings.filterwarnings("ignore",category=DeprecationWarning)
import warnings
warnings.warn("Warning...........Message")
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=DeprecationWarning)
import md5, sha
yourcode()