MCPcopy Create free account
hub / github.com/authlib/authlib / _normalize_timeout

Method _normalize_timeout

tests/flask/cache.py:28–33  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

26 self._cache.pop(key, None)
27
28 def _normalize_timeout(self, timeout):
29 if timeout is None:
30 timeout = self.default_timeout
31 if timeout > 0:
32 timeout = time.time() + timeout
33 return timeout
34
35 def get(self, key):
36 try:

Callers 1

setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected