| Server IP : 172.67.131.151 / Your IP : 104.23.197.69 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/landscape/lib/ |
Upload File : |
"""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)