

def __getitem__(self, key):
    svalue = self.execute('SELECT value FROM {0} WHERE key = ?'.format(self.tablename), (key,)).fetchone()
    if svalue:
        return self.deserialize(unwrap1(svalue))
    else:
        raise KeyError()

dataset/ETHPy150Open chromaway/ngcccbase/coloredcoinlib/store.py PersistentDictStore.__getitem__/original