This file is indexed.

/usr/share/pyshared/fusil/session_agent.py is in fusil 1.4-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
25
26
from fusil.project_agent import ProjectAgent
from weakref import ref as weakref_ref

class SessionAgent(ProjectAgent):
    def __init__(self, session, name, project=None):
        if project:
            mta = project.mta()
        else:
            mta = session.mta()
            project = session.project()
        self._session = weakref_ref(session)
        ProjectAgent.__init__(self, project, name, mta=mta)
        self.activate()

    def session(self):
        return self._session()

    def register(self):
        ProjectAgent.register(self)
        self.session().registerAgent(self)

    def unregister(self, destroy=True):
        ProjectAgent.unregister(self, destroy)
        session = self.session()
        if session:
            session.unregisterAgent(self, destroy)