diff Python/errors.c @ 59029:3357b8ebb259

Poor PLAN9, it isn't supported
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 22 Feb 2010 19:41:37 +0000
parents c1972eef3579
children 07a47a514548
line wrap: on
line diff
--- a/Python/errors.c	Mon Feb 22 18:54:44 2010 +0000
+++ b/Python/errors.c	Mon Feb 22 19:41:37 2010 +0000
@@ -360,25 +360,17 @@
 	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 @@
 		}
 	}
 #endif /* Unix/Windows */
-#endif /* PLAN 9*/
 
 	if (message == NULL)
 	{