This file is indexed.

/usr/share/pyshared/pebl/taskcontroller/serial.py is in python-pebl 1.0.2-2build1.

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
"""Module providing a taskcontroller than runs tasks serially."""

from pebl.taskcontroller.base import _BaseController

class SerialController(_BaseController):
    """A simple taskcontroller that runs tasks in serial in one process.

    This is just the default, null task controller.

    """

    def run(self, tasks):
        results =  [t.run() for t in tasks]
        
        # to make the results look like deferred results
        for r in results:
            r.taskid = 0

        return results