MCPcopy Index your code
hub / github.com/RustPython/RustPython / _strerror

Function _strerror

Lib/test/support/asyncore.py:84–90  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

82 socket_map = {}
83
84def _strerror(err):
85 try:
86 return os.strerror(err)
87 except (ValueError, OverflowError, NameError):
88 if err in errorcode:
89 return errorcode[err]
90 return "Unknown error %s" %err
91
92class ExitNow(Exception):
93 pass

Callers 1

handle_connect_eventMethod · 0.85

Calls 1

strerrorMethod · 0.80

Tested by

no test coverage detected