| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/attackgithub/pythonnet/v2.2.1/src/tests/warnfilter.py | [Back] [Original] |
"""Warnfilter
"""
from warnings import filterwarnings
from warnings import resetwarnings
def addClrWarnfilter(action="ignore", append=False):
msgs = ["^The CLR module is deprecated.*", "^Importing from the CLR\.\* namespace.*"]
for msg in msgs:
filterwarnings(action, msg, category=DeprecationWarning, append=append)
| Web Proxy Viewer | New URL | Original Page |