This file is indexed.

/usr/lib/python2.7/dist-packages/piggyphoto/ptph.py is in python-piggyphoto 0.1dev-git20141014.

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
import re

f = open("ptp.h")
out = open("ptp.py", "w")
out.write("# Constants extracted from gphoto2's ptp.h\n\n")
lines = f.readlines()

for line in lines:
    line = line.strip()
    reg = r"^#define\s+([a-zA-Z0-9_]+)\s+(.*)"
    m = re.match(reg, line)
    if m:
        #print line
        g = m.groups()
        name, value = g[0], g[1]
        value = value.replace("/*", "#")
        value = value.replace("//", "#")
        out.write("%s = %s\n" % (name, value))