This file is indexed.

/usr/lib/python2.7/dist-packages/tomahawk/constants.py is in python-tomahawk 0.7.1-1.

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
DEFAULT_TIMEOUT = 10
DEFAULT_EXPECT_DELAY = 0.05
DEFAULT_EXPECT_ENCODING = 'utf-8'
DEFAULT_COMMAND_OUTPUT_FORMAT = '${user}@${host} % ${command}\n${output}\n'
DEFAULT_RSYNC_OUTPUT_FORMAT = '% ${command}\n${output}\n'
DEFAULT_RSYNC_OPTIONS = '-av'
OUTPUT_FORMAT_CONTROLL_CHARS = {
    'r': '\r',
    'n': '\n',
    't': '\t',
}

# TODO: should rename to tomahawk_common ?
class TimeoutError(RuntimeError):
    """Timeout error of command execution."""
    pass

class CommandError(RuntimeError):
    """Command execution error."""
    pass

class FatalError(RuntimeError):
    """A fatal error in tomahawk."""
    pass