This file is indexed.

/usr/share/pyshared/scrapy/commands/server.py is in python-scrapy 0.14.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
from __future__ import absolute_import

from scrapy.command import ScrapyCommand
from scrapy.exceptions import UsageError

class Command(ScrapyCommand):

    requires_project = True

    def short_desc(self):
        return "Start Scrapyd server for this project"

    def long_desc(self):
        return "Start Scrapyd server for this project, which can be referred " \
            "from the JSON API with the name 'default'"

    def run(self, args, opts):
        try:
            from scrapyd.script import execute
            execute()
        except ImportError:
            raise UsageError("Scrapyd is not available in this system")