def clear_expired_cookies(self):
        self._cookies_lock.acquire()
        now = time.time()
        for cookie in self:
            if cookie.is_expired(now):
                self.clear(cookie.domain, cookie.path, cookie.name)
        self._cookies_lock.release()
Discard all expired cookies.
dataset/ETHPy150Open babble/babble/include/jython/Lib/cookielib.py/CookieJar.clear_expired_cookies