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

Method _update_state

src/werkzeug/routing/matcher.py:60–65  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

58 state = self._root
59
60 def _update_state(state: State) -> None:
61 state.dynamic.sort(key=lambda entry: entry[0].weight)
62 for new_state in state.static.values():
63 _update_state(new_state)
64 for _, new_state in state.dynamic:
65 _update_state(new_state)
66
67 _update_state(state)
68

Callers

nothing calls this directly

Calls 2

sortMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected