Commit the changes to the session
(self)
| 131 | return True |
| 132 | |
| 133 | def commit(self): |
| 134 | """Commit the changes to the session""" |
| 135 | if not self.started: |
| 136 | raise NotStarted("Session must be started") |
| 137 | with open(self.path, "wb") as f: |
| 138 | dump(self.data, f, HIGHEST_PROTOCOL) |
| 139 | |
| 140 | def destroy(self): |
| 141 | """Destroy the session""" |
no test coverage detected