Answers for "how to remove the warning s during the python -teerraform"

5

python suppress warnings in function

import warnings

def fxn():
    warnings.warn("deprecated", DeprecationWarning)

with warnings.catch_warnings():
    warnings.simplefilter("ignore")
    fxn()
Posted by: Guest on February-23-2020

Code answers related to "how to remove the warning s during the python -teerraform"

Python Answers by Framework

Browse Popular Code Answers by Language