def __init__(self, pid):
        """Read and parse /proc/<pid>/stat."""

        with open("/proc/%i/stat" % pid) as file:
            stat = file.read()

        strings  = stat.split()
        self.__d = {
            "pid"   : strings[0],
            "sid"   : strings[5],
            "utime" : strings[13],
            }

#         for i in fields:
#             m = ProcessStat.__stat_res[i].match(strings[i])

#             self.__d.update(m.groupdict())
dataset/ETHPy150Open borg-project/borg/borg/unix/proc.py/ProcessStat.__init__/original