MCPcopy Index your code
hub / github.com/RustPython/RustPython / update

Method update

Lib/http/cookies.py:334–341  ·  view source on GitHub ↗
(self, values)

Source from the content-addressed store, hash-verified

332 return morsel
333
334 def update(self, values):
335 data = {}
336 for key, val in dict(values).items():
337 key = key.lower()
338 if key not in self._reserved:
339 raise CookieError("Invalid attribute %r" % (key,))
340 data[key] = val
341 dict.update(self, data)
342
343 def isReservedKey(self, K):
344 return K.lower() in self._reserved

Callers 15

test_eqMethod · 0.95
test_copyMethod · 0.95
test_setdefaultMethod · 0.95
test_updateMethod · 0.95
test_pickleMethod · 0.95
test_reprMethod · 0.95
cp855.pyFile · 0.45
cp857.pyFile · 0.45
cp437.pyFile · 0.45
cp1125.pyFile · 0.45
cp737.pyFile · 0.45
cp860.pyFile · 0.45

Calls 3

CookieErrorClass · 0.85
itemsMethod · 0.45
lowerMethod · 0.45

Tested by 6

test_eqMethod · 0.76
test_copyMethod · 0.76
test_setdefaultMethod · 0.76
test_updateMethod · 0.76
test_pickleMethod · 0.76
test_reprMethod · 0.76