MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _next_update

Function _next_update

pymongo/ocsp_cache.py:30–35  ·  view source on GitHub ↗

Compat helper to return the response's next_update_utc.

(value: OCSPResponse)

Source from the content-addressed store, hash-verified

28
29
30def _next_update(value: OCSPResponse) -> Optional[_datetime]:
31 """Compat helper to return the response's next_update_utc."""
32 # Added in cryptography 43.0.0.
33 if hasattr(value, "next_update_utc"):
34 return value.next_update_utc
35 return value.next_update
36
37
38def _this_update(value: OCSPResponse) -> Optional[_datetime]:

Callers 3

_verify_responseFunction · 0.90
__setitem__Method · 0.85
__getitem__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected