def __setstate__(self, state):
        """Unlike a normal CookieJar, this class is pickleable."""
        self.__dict__.update(state)
        if '_cookies_lock' not in self.__dict__:
            self._cookies_lock = threading.RLock()
Unlike a normal CookieJar, this class is pickleable.
product/gradle-plugin/src/main/python/pip/_vendor/requests/cookies.py