This file is indexed.

/usr/share/pyshared/scrapy/commands/version.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
23
24
25
26
27
28
29
import sys
import platform

import twisted

import scrapy
from scrapy.command import ScrapyCommand

class Command(ScrapyCommand):

    def syntax(self):
        return "[-v]"

    def short_desc(self):
        return "Print Scrapy version"

    def add_options(self, parser):
        ScrapyCommand.add_options(self, parser)
        parser.add_option("--verbose", "-v", dest="verbose", action="store_true",
            help="also display twisted/python/platform info (useful for bug reports)")

    def run(self, args, opts):
        if opts.verbose:
            print "Scrapy  : %s" % scrapy.__version__
            print "Twisted : %s" % twisted.version.short()
            print "Python  : %s" % sys.version.replace("\n", "- ")
            print "Platform: %s" % platform.platform()
        else:
            print "Scrapy %s" % scrapy.__version__