MCPcopy
hub / github.com/cherrypy/cherrypy / __call__

Method __call__

cherrypy/_cpdispatch.py:52–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 return cherrypy.serving.request.kwargs
51
52 def __call__(self):
53 try:
54 return self.callable(*self.args, **self.kwargs)
55 except TypeError:
56 x = sys.exc_info()[1]
57 try:
58 test_callable_spec(self.callable, self.args, self.kwargs)
59 except cherrypy.HTTPError:
60 raise sys.exc_info()[1]
61 except Exception:
62 raise x
63 raise
64
65
66def test_callable_spec(callable, callable_args, callable_kwargs):

Callers

nothing calls this directly

Calls 2

test_callable_specFunction · 0.85
callableMethod · 0.80

Tested by

no test coverage detected