Dictionary style assignment.
(self, key, value)
| 507 | dict.__setitem__(self, key, M) |
| 508 | |
| 509 | def __setitem__(self, key, value): |
| 510 | """Dictionary style assignment.""" |
| 511 | if isinstance(value, Morsel): |
| 512 | # allow assignment of constructed Morsels (e.g. for pickling) |
| 513 | dict.__setitem__(self, key, value) |
| 514 | else: |
| 515 | rval, cval = self.value_encode(value) |
| 516 | self.__set(key, rval, cval) |
| 517 | |
| 518 | def output(self, attrs=None, header="Set-Cookie:", sep="\015\012"): |
| 519 | """Return a string suitable for HTTP.""" |
nothing calls this directly
no test coverage detected