(s)
| 68 | +-- TimeoutError ETIMEDOUT |
| 69 | """ |
| 70 | def _make_map(s): |
| 71 | _map = {} |
| 72 | for line in s.splitlines(): |
| 73 | line = line.strip('+- ') |
| 74 | if not line: |
| 75 | continue |
| 76 | excname, _, errnames = line.partition(' ') |
| 77 | for errname in filter(None, errnames.strip().split(', ')): |
| 78 | if errname == "ENOTCAPABLE" and not hasattr(errno, errname): |
| 79 | continue |
| 80 | _map[getattr(errno, errname)] = getattr(builtins, excname) |
| 81 | return _map |
| 82 | _map = _make_map(_pep_map) |
| 83 | |
| 84 | def test_errno_mapping(self): |
nothing calls this directly
no test coverage detected