This file is indexed.

/usr/share/pyshared/apport/__init__.py is in python-apport 2.0.1-0ubuntu17.15.

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
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from apport.report import Report

from apport.packaging_impl import impl as packaging

import sys

# fix gettext to output proper unicode strings
import gettext

def unicode_gettext(str):
    trans = gettext.gettext(str)
    if isinstance(trans, unicode):
        return trans
    return trans.decode('UTF-8')

def fatal(msg, *args):
    '''Print out an error message and exit the program.'''

    error(msg, *args)
    sys.exit(1)

def error(msg, *args):
    '''Print out an error message.'''

    sys.stderr.write('ERROR: ')
    sys.stderr.write(msg % args)
    sys.stderr.write('\n')

def warning(msg, *args):
    '''Print out an warning message.'''

    sys.stderr.write('WARNING: ')
    sys.stderr.write(msg % args)
    sys.stderr.write('\n')