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

Method _set_value

src/werkzeug/datastructures/csp.py:77–82  ·  view source on GitHub ↗

Used internally by the accessor properties.

(self, key: str, value: str | None)

Source from the content-addressed store, hash-verified

75 return self.get(key)
76
77 def _set_value(self, key: str, value: str | None) -> None:
78 """Used internally by the accessor properties."""
79 if value is None:
80 self.pop(key, None)
81 else:
82 self[key] = value
83
84 def _del_value(self, key: str) -> None:
85 """Used internally by the accessor properties."""

Callers 1

csp_propertyFunction · 0.80

Calls 1

popMethod · 0.45

Tested by

no test coverage detected