%PDF- %PDF-
Direktori : /lib/python3/dist-packages/landscape/lib/ |
Current File : //lib/python3/dist-packages/landscape/lib/warning.py |
"""Warning utilities for Landscape.""" import warnings def hide_warnings(): """Disable printing of non-UserWarning warnings. This should be used for any programs that are being run by a user in a production environment: warnings that aren't UserWarnings are meant for developers. """ warnings.simplefilter("ignore") warnings.simplefilter("default", UserWarning)