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

Function _this_update

pymongo/ocsp_cache.py:38–43  ·  view source on GitHub ↗

Compat helper to return the response's this_update_utc.

(value: OCSPResponse)

Source from the content-addressed store, hash-verified

36
37
38def _this_update(value: OCSPResponse) -> Optional[_datetime]:
39 """Compat helper to return the response's this_update_utc."""
40 # Added in cryptography 43.0.0.
41 if hasattr(value, "this_update_utc"):
42 return value.this_update_utc
43 return value.this_update
44
45
46class _OCSPCache:

Callers 3

_verify_responseFunction · 0.90
__setitem__Method · 0.85
__getitem__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected