AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.142.198.148


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