(exc: BaseException)
| 24 | |
| 25 | |
| 26 | def _errno_from_exception(exc: BaseException) -> Optional[int]: |
| 27 | if hasattr(exc, "errno"): |
| 28 | return cast(int, exc.errno) |
| 29 | if exc.args: |
| 30 | return cast(int, exc.args[0]) |
| 31 | return None |
| 32 | |
| 33 | |
| 34 | class SocketChecker: |
no outgoing calls
no test coverage detected