Unlike a normal CookieJar, this class is pickleable.
(self, state: dict[str, Any])
| 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.""" |