MCPcopy
hub / github.com/pallets/werkzeug / _get_environ

Function _get_environ

src/werkzeug/_internal.py:37–42  ·  view source on GitHub ↗
(obj: WSGIEnvironment | Request)

Source from the content-addressed store, hash-verified

35
36
37def _get_environ(obj: WSGIEnvironment | Request) -> WSGIEnvironment:
38 env = getattr(obj, "environ", obj)
39 assert isinstance(env, dict), (
40 f"{type(obj).__name__!r} is not a WSGI environment (has to be a dict)"
41 )
42 return env
43
44
45def _has_level_handler(logger: logging.Logger) -> bool:

Callers 4

run_wsgi_appFunction · 0.85
get_responseMethod · 0.85
make_conditionalMethod · 0.85
bind_to_environMethod · 0.85

Calls

no outgoing calls

Tested by 1

run_wsgi_appFunction · 0.68