def __getstate__(self):
        """Unlike a normal CookieJar, this class is pickleable."""
        state = self.__dict__.copy()
        # remove the unpickleable RLock object
        state.pop('_cookies_lock')
        return state
Unlike a normal CookieJar, this class is pickleable.
product/gradle-plugin/src/main/python/pip/_vendor/requests/cookies.py