Destroy the session
(self)
| 138 | dump(self.data, f, HIGHEST_PROTOCOL) |
| 139 | |
| 140 | def destroy(self): |
| 141 | """Destroy the session""" |
| 142 | if not self.started: |
| 143 | raise NotStarted("Session must be started") |
| 144 | os.delete(self.path) |
| 145 | if self._flock: |
| 146 | self._flock.release() |
| 147 | self.started = False |
| 148 | |
| 149 | def output(self): |
| 150 | """Commit changes and send headers.""" |
no test coverage detected