MCPcopy Index your code
hub / github.com/python/cpython / is_expired

Method is_expired

Lib/http/cookiejar.py:811–815  ·  view source on GitHub ↗
(self, now=None)

Source from the content-addressed store, hash-verified

809 self._rest[name] = value
810
811 def is_expired(self, now=None):
812 if now is None: now = time.time()
813 if (self.expires is not None) and (self.expires <= now):
814 return True
815 return False
816
817 def __str__(self):
818 if self.port is None: p = ""

Callers 6

_really_loadMethod · 0.95
_really_loadMethod · 0.95
return_ok_expiresMethod · 0.80
clear_expired_cookiesMethod · 0.80
as_lwp_strMethod · 0.80
saveMethod · 0.80

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected