def handle_save(self): with open(self.filepath, 'w') as io: pytoml.dump(self._data, io) io.close()
def handle_load(self): with open(self.filepath, 'r') as io: self._data = pytoml.load(io) io.close()
def handle_load(self): with open(self.filepath, 'r') as io: self._data = simplejson.load(io) io.close()
def handle_save(self): with open(self.filepath, 'w') as io: yaml.dump(self._data, io, default_flow_style=False) io.close()
def handle_save(self): with open(self.filepath, 'w') as io: simplejson.dump(self._data, io, indent=2, sort_keys=True) io.close()
def save(self): with open(self._filename, 'w') as io: yaml.dump(self._data, io, default_flow_style=False) io.close()
def load(self): with open(self._filename, 'r') as io: self._data = json.load(io) io.close()
def save(self): with open(self._filename, 'w') as io: json.dump(self._data, io, indent=2, sort_keys=True) io.close()
def save(self): with open(self._filename, 'w') as io: toml.dump(self._data, io) io.close()