diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-03-18 15:35:58 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-03-18 15:35:58 (GMT) |
commit | 10ed0f50a989f83395b7af67249d44d2419e5d3f (patch) | |
tree | 40223244ca701e2eb978455d710ba6c6f585fa65 /Modules/_fileio.c | |
parent | 50a24d8bfdb831f6cb79ad717af6e5c17230763f (diff) | |
download | cpython-10ed0f50a989f83395b7af67249d44d2419e5d3f.zip cpython-10ed0f50a989f83395b7af67249d44d2419e5d3f.tar.gz cpython-10ed0f50a989f83395b7af67249d44d2419e5d3f.tar.bz2 |
Remove all traces of HAVE_STRERROR.
The removal of strerror.c led to the function check being removed from
configure.in.
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r-- | Modules/_fileio.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c index bf52707..00689b3 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c @@ -104,11 +104,7 @@ dircheck(PyFileIOObject* self) if (self->fd < 0) return 0; if (fstat(self->fd, &buf) == 0 && S_ISDIR(buf.st_mode)) { -#ifdef HAVE_STRERROR char *msg = strerror(EISDIR); -#else - char *msg = "Is a directory"; -#endif PyObject *exc; internal_close(self); @@ -295,12 +291,8 @@ fileio_dealloc(PyFileIOObject *self) if (self->fd >= 0 && self->closefd) { errno = internal_close(self); if (errno < 0) { -#ifdef HAVE_STRERROR PySys_WriteStderr("close failed: [Errno %d] %s\n", errno, strerror(errno)); -#else - PySys_WriteStderr("close failed: [Errno %d]\n", errno); -#endif } } |