This file is indexed.

/usr/share/pyshared/pisockextras.py is in python-pisock 0.12.5-dfsg-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
import pisock
import datetime

def dlp_ReadDBList(sd, cardno=0, flags=None):
    ret = []
    i = 0
    if flags is None:
        flags = pisock.dlpDBListRAM
    while True:
        try:
            lst = pisock.dlp_ReadDBList_(sd, cardno, pisock.dlpDBListMultiple | flags, i)
            if (lst is None) or (len(lst) == 0):
                return ret
            for db in lst:
                i = db['index'] + 1
                ret.append(db)
        except pisock.error:
            if pisock.pi_palmos_error(sd)==pisock.dlpErrNotFound:
                return ret
            raise

def dlp_GetSysDateTime(sd):
    r = pisock.dlp_GetSysDateTime_(sd)
    return datetime.datetime.fromtimestamp(r)