MCPcopy Index your code
hub / github.com/webpy/webpy / _cleanup

Method _cleanup

web/application.py:121–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119 web.ctx.fullpath = oldctx.fullpath
120
121 def _cleanup(self):
122 # Threads can be recycled by WSGI servers.
123 # Clearing up all thread-local state to avoid interefereing with subsequent requests.
124 utils.ThreadedDict.clear_all()
125
126 def init_mapping(self, mapping):
127 self.mapping = list(utils.group(mapping, 2))

Callers 2

wsgiMethod · 0.95
cleanupMethod · 0.95

Calls 1

clear_allMethod · 0.80

Tested by

no test coverage detected