Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __delitem__(self, key, value):
super(Data, self).__setitem__(key, value)
path, key = util.get_expanded_path(self.dict, key)
del util.reduce(getitem, path, self.dict)[key]
def __setitem__(self, key, value):
super(Data, self).__setitem__(key, value)
path, key = util.get_expanded_path(self.dict, key)
util.reduce(getitem, path, self.dict)[key] = value