예제 #1
0
 def handle_save(self):
     with open(self.filepath, 'w') as io:
         pytoml.dump(self._data, io)
         io.close()
예제 #2
0
 def handle_load(self):
     with open(self.filepath, 'r') as io:
         self._data = pytoml.load(io)
         io.close()
예제 #3
0
 def handle_load(self):
     with open(self.filepath, 'r') as io:
         self._data = simplejson.load(io)
         io.close()
예제 #4
0
 def handle_save(self):
     with open(self.filepath, 'w') as io:
         yaml.dump(self._data, io, default_flow_style=False)
         io.close()
예제 #5
0
 def handle_save(self):
     with open(self.filepath, 'w') as io:
         simplejson.dump(self._data, io, indent=2, sort_keys=True)
         io.close()
예제 #6
0
 def save(self):
     with open(self._filename, 'w') as io:
         yaml.dump(self._data, io, default_flow_style=False)
         io.close()
예제 #7
0
 def load(self):
     with open(self._filename, 'r') as io:
         self._data = json.load(io)
         io.close()
예제 #8
0
 def save(self):
     with open(self._filename, 'w') as io:
         json.dump(self._data, io, indent=2, sort_keys=True)
         io.close()
예제 #9
0
 def save(self):
     with open(self._filename, 'w') as io:
         toml.dump(self._data, io)
         io.close()