'Unlike a normal CookieJar, this class is pickleable.'

def __setstate__(self, state):

    self.__dict__.update(state)
    if ('_cookies_lock' not in self.__dict__):
        self._cookies_lock = threading.RLock()
