summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-03-18 15:35:58 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-03-18 15:35:58 (GMT)
commit10ed0f50a989f83395b7af67249d44d2419e5d3f (patch)
tree40223244ca701e2eb978455d710ba6c6f585fa65 /Objects
parent50a24d8bfdb831f6cb79ad717af6e5c17230763f (diff)
downloadcpython-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 'Objects')
-rw-r--r--Objects/fileobject.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 6f8eb7c..9195a24 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -83,11 +83,7 @@ dircheck(PyFileObject* f)
return f;
if (fstat(fileno(f->f_fp), &buf) == 0 &&
S_ISDIR(buf.st_mode)) {
-#ifdef HAVE_STRERROR
char *msg = strerror(EISDIR);
-#else
- char *msg = "Is a directory";
-#endif
PyObject *exc = PyObject_CallFunction(PyExc_IOError, "(is)",
EISDIR, msg);
PyErr_SetObject(PyExc_IOError, exc);
@@ -398,11 +394,7 @@ file_dealloc(PyFileObject *f)
sts = (*f->f_close)(f->f_fp);
Py_END_ALLOW_THREADS
if (sts == EOF)
-#ifdef HAVE_STRERROR
PySys_WriteStderr("close failed: [Errno %d] %s\n", errno, strerror(errno));
-#else
- PySys_WriteStderr("close failed: [Errno %d]\n", errno);
-#endif
}
PyMem_Free(f->f_setbuf);
Py_XDECREF(f->f_name);