Compat helper to return the response's next_update_utc.
(value: OCSPResponse)
| 28 | |
| 29 | |
| 30 | def _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 | |
| 38 | def _this_update(value: OCSPResponse) -> Optional[_datetime]: |
no outgoing calls
no test coverage detected