def __init__(self):
        fo = open("/proc/devices")
        self._charmap = {}
        self._blockmap = {}
        for line in fo.readlines():
            if line.startswith("Character"):
                curmap = self._charmap
                continue
            elif line.startswith("Block"):
                curmap = self._blockmap
                continue
            elif len(line) > 4:
                [num, fmt] = line.split()
                num = int(num)
                curmap[num] = fmt
dataset/ETHPy150Open kdart/pycopia/core/pycopia/OS/Linux/proc/devices.py/Devices.__init__/original