MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / save

Method save

service/settings.py:100–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 # cPickle.dump(self.info, f, cPickle.HIGHEST_PROTOCOL)
99
100 def save(self):
101 # NOTE: needed to change for tests
102 if self.location is None or not self.location:
103 return
104 # NOTE: with + open -> file handle auto close
105 with open(self.location, "wb") as f:
106 pickle.dump(self.info, f, pickle.HIGHEST_PROTOCOL)
107
108 def __getitem__(self, k):
109 try:

Callers 15

newPatternMethod · 0.80
renamePatternMethod · 0.80
copyPatternMethod · 0.80
saveChangesMethod · 0.80
runMethod · 0.80
handleLoginMethod · 0.80
newPatternMethod · 0.80
renamePatternMethod · 0.80
copyPatternMethod · 0.80
saveChangesMethod · 0.80
newFitMethod · 0.80
copyFitMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_getAllFitsFunction · 0.64