MCPcopy Index your code
hub / github.com/python/cpython / value_encode

Method value_encode

Lib/http/cookies.py:490–497  ·  view source on GitHub ↗

real_value, coded_value = value_encode(VALUE) Called prior to setting a cookie's value from the dictionary representation. The VALUE is the value being assigned. Override this function to modify the behavior of cookies.

(self, val)

Source from the content-addressed store, hash-verified

488 return val, val
489
490 def value_encode(self, val):
491 """real_value, coded_value = value_encode(VALUE)
492 Called prior to setting a cookie's value from the dictionary
493 representation. The VALUE is the value being assigned.
494 Override this function to modify the behavior of cookies.
495 """
496 strval = str(val)
497 return strval, strval
498
499 def __init__(self, input=None):
500 if input:

Callers 1

__setitem__Method · 0.95

Calls 1

strFunction · 0.85

Tested by

no test coverage detected