This file is indexed.

/usr/share/pyshared/landscape/lib/warning.py is in landscape-common 12.04.3-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
"""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)