MCPcopy
hub / github.com/psf/requests / __setstate__

Method __setstate__

src/requests/cookies.py:461–465  ·  view source on GitHub ↗

Unlike a normal CookieJar, this class is pickleable.

(self, state: dict[str, Any])

Source from the content-addressed store, hash-verified

459 return state
460
461 def __setstate__(self, state: dict[str, Any]) -> None:
462 """Unlike a normal CookieJar, this class is pickleable."""
463 self.__dict__.update(state)
464 if "_cookies_lock" not in self.__dict__:
465 self._cookies_lock = threading.RLock()
466
467 def copy(self) -> RequestsCookieJar:
468 """Return a copy of this RequestsCookieJar."""

Callers

nothing calls this directly

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected