0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.146.65.134


Current Path : /proc/thread-self/root/usr/lib/python3/dist-packages/landscape/lib/
Upload File :
Current File : //proc/thread-self/root/usr/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)