parameters: (self)
docstring: Discard all expired cookies.
  
          You probably don't need to call this method: expired cookies are never
          sent back to the server (provided you're using DefaultCookiePolicy),
          this method is called by CookieJar itself every so often, and the
          .save() method won't save expired cookies anyway (unless you ask
          otherwise by passing a true ignore_expires argument).
docstring_summary: Discard all expired cookies.
docstring_tokens: Discard all expired cookies .
function: def clear_expired_cookies(self):
          """Discard all expired cookies.
  
          You probably don't need to call this method: expired cookies are never
          sent back to the server (provided you're using DefaultCookiePolicy),
          this method is called by CookieJar itself every so often, and the
          .save() method won't save expired cookies anyway (unless you ask
          otherwise by passing a true ignore_expires argument).
  
          """
          self._cookies_lock.acquire()
          try:
              now = time.time()
              for cookie in self:
                  if cookie.is_expired(now):
                      self.clear(cookie.domain, cookie.path, cookie.name)
          finally:
              self._cookies_lock.release()
function_tokens: def clear_expired_cookies ( self ) : self . _cookies_lock . acquire ( ) try : now = time . time ( ) for cookie in self : if cookie . is_expired ( now ) : self . clear ( cookie . domain , cookie . path , cookie . name ) finally : self . _cookies_lock . release ( )