MCPcopy
hub / github.com/urllib3/urllib3 / discard

Method discard

src/urllib3/_collections.py:300–304  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

298 yield vals[0]
299
300 def discard(self, key: str) -> None:
301 try:
302 del self[key]
303 except KeyError:
304 pass
305
306 def add(self, key: str, val: str, *, combine: bool = False) -> None:
307 """Adds a (name, value) pair, doesn't overwrite the value if it already

Callers 2

test_discardMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_discardMethod · 0.64