This file is indexed.

/usr/lib/python3/dist-packages/psautohint/psautohint.py is in python3-psautohint 1.1.0-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
from . import _psautohint

def toBytes(o):
    if hasattr(o, "encode"):
        return o.encode("utf-8")
    if isinstance(o, (list, tuple)):
        return [toBytes(i) for i in o]
    return o

def toStr(o):
    if hasattr(o, "decode"):
        return o.decode("utf-8")
    if isinstance(o, (list, tuple)):
        return [toStr(i) for i in o]
    return o

def autohint(info, glyphs, verbose=True, allow_edit=True, allow_hint_sub=True,
             round_ccordinates=True, debug=False):
    hinted = _psautohint.autohint(toBytes(info), toBytes(glyphs), verbose,
                                  allow_edit, allow_hint_sub, round_ccordinates,
                                  debug)

    return toStr(hinted)