

def add(self, keys, handler):
    '\n        Add a handler for the given keys.\n\n        '
    (_, mapping) = self._contents
    for key in keys[:(- 1)]:
        (_, mapping) = mapping.setdefault(key, (None, {
            
        }))
    mapping[keys[(- 1)]] = (handler, {
        
    })

dataset/ETHPy150Open Julian/PyVi/pyvi/mode.py _Map.add/original