This file is indexed.

/usr/share/pyshared/martian/martiandirective.py is in python-martian 0.12-0ubuntu2.

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
35
36
37
38
39
40
"""Martian-specific directives"""

from martian.directive import (Directive, MultipleTimesDirective,
                               MarkerDirective, validateClass,
                               CLASS, ONCE, ONCE_NOBASE)
from martian.error import GrokImportError

class component(Directive):
    scope = CLASS
    store = ONCE
    default = None
    validate = validateClass


class directive(MultipleTimesDirective):
    scope = CLASS

    def validate(self, directive, *args, **kw):
        try:
            if issubclass(directive, Directive):
                return
        except TypeError:
            # directive is not a class, so error too
            pass
        raise GrokImportError("The '%s' directive can only be called with "
                              "a directive." % self.name)

    def factory(self, directive, *args, **kw):
        return directive.bind(*args, **kw)


class priority(Directive):
    scope = CLASS
    store = ONCE
    default = 0


class baseclass(MarkerDirective):
    scope = CLASS
    store = ONCE_NOBASE