Compat helper to return the response's this_update_utc.
(value: OCSPResponse)
| 36 | |
| 37 | |
| 38 | def _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 | |
| 46 | class _OCSPCache: |
no outgoing calls
no test coverage detected