Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 45854:21139ea59b6b legacy-trunk
Remove all traces of HAVE_STRERROR.
The removal of strerror.c led to the function check being removed from
configure.in.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Tue, 18 Mar 2008 15:35:58 +0000 |
| parents | dfd21793a5b5 |
| children | c4ed664a1da1 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Tue Mar 18 15:03:17 2008 +0000 +++ b/Modules/socketmodule.c Tue Mar 18 15:35:58 2008 +0000 @@ -3110,15 +3110,10 @@ } if (h->h_addrtype != af) { -#ifdef HAVE_STRERROR /* Let's get real error message to return */ PyErr_SetString(socket_error, (char *)strerror(EAFNOSUPPORT)); -#else - PyErr_SetString( - socket_error, - "Address family not supported by protocol family"); -#endif + return NULL; }
