This file is indexed.

/usr/share/pyshared/celery/actors.py is in python-celery 2.5.3-4.

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
from __future__ import absolute_import

from celery.app import app_or_default

import cl
import cl.presence


def construct(cls, instance, connection=None, *args, **kwargs):
    app = instance.app = app_or_default(kwargs.pop("app", None))
    super(cls, instance).__init__(connection or app.broker_connection(),
                                  *args, **kwargs)


class Actor(cl.Actor):

    def __init__(self, *args, **kwargs):
        construct(Actor, self, *args, **kwargs)


class Agent(cl.Agent):

    def __init__(self, *args, **kwargs):
        construct(Agent, self, *args, **kwargs)


class AwareAgent(cl.presence.AwareAgent):

    def __init__(self, *args, **kwargs):
        construct(AwareAgent, self, *args, **kwargs)