summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-02-22 19:41:37 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-02-22 19:41:37 +0000
commit645dfdaf4fe8885ff0025acdbb47acae699e6e89 (patch)
treedab9d998c7c7fbed443420423a21487bf3dbe4b5 /Python/errors.c
parent6c0bca895c9a0dc6c1cadcb6a5775292ca5ba1ad (diff)
downloadcpython-645dfdaf4fe8885ff0025acdbb47acae699e6e89.tar.gz
Poor PLAN9, it isn't supported
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 42e0e6f3d5..062658d737 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -360,25 +360,17 @@ PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject)
PyObject *message;
PyObject *v;
int i = errno;
-#ifdef PLAN9
- char errbuf[ERRMAX];
-#else
#ifndef MS_WINDOWS
char *s;
#else
WCHAR *s_buf = NULL;
#endif /* Unix/Windows */
-#endif /* PLAN 9*/
#ifdef EINTR
if (i == EINTR && PyErr_CheckSignals())
return NULL;
#endif
-#ifdef PLAN9
- rerrstr(errbuf, sizeof errbuf);
- message = PyUnicode_DecodeUTF8(errbuf, strlen(errbuf), "ignore");
-#else
#ifndef MS_WINDOWS
if (i == 0)
s = "Error"; /* Sometimes errno didn't get set */
@@ -425,7 +417,6 @@ PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject)
}
}
#endif /* Unix/Windows */
-#endif /* PLAN 9*/
if (message == NULL)
{