MCPcopy
hub / github.com/cherrypy/cherrypy / __exit__

Method __exit__

cherrypy/_cptools.py:442–449  ·  view source on GitHub ↗

Run tool._setup() for each tool in our toolmap.

(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

440 return populate
441
442 def __exit__(self, exc_type, exc_val, exc_tb):
443 """Run tool._setup() for each tool in our toolmap."""
444 map = cherrypy.serving.request.toolmaps.get(self.namespace)
445 if map:
446 for name, settings in map.items():
447 if settings.get('on', False):
448 tool = getattr(self, name)
449 tool._setup()
450
451 def register(self, point, **kwargs):
452 """

Callers

nothing calls this directly

Calls 3

itemsMethod · 0.80
getMethod · 0.45
_setupMethod · 0.45

Tested by

no test coverage detected