(self)
| 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: |
no outgoing calls