MCPcopy Create free account
hub / github.com/ActiveState/code / destroy

Method destroy

recipes/Python/577524_Python_Sessions/recipe-577524.py:140–147  ·  view source on GitHub ↗

Destroy the session

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 15

recipe-577801.jsFile · 0.45
closeFunction · 0.45
changedMethod · 0.45
selectionMethod · 0.45
destroyFunction · 0.45
recipe-577038.pyFile · 0.45
__init__Method · 0.45
__exit__Method · 0.45
canceledFunction · 0.45
tearDownMethod · 0.45
__exit__Method · 0.45
textwindowFunction · 0.45

Calls 3

NotStartedClass · 0.85
deleteMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected