From 8d30cc0144a6a94e06f3a115b07afa6314466cfd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 3 May 2007 17:49:24 +0000 Subject: Get rid of all #ifdef Py_USING_UNICODE (it is always present now). (With the help of unifdef from freshmeat.) --- Include/pyerrors.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Include/pyerrors.h') diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 562af10a42..5573b73447 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -26,7 +26,6 @@ typedef struct { PyObject *print_file_and_line; } PySyntaxErrorObject; -#ifdef Py_USING_UNICODE typedef struct { PyObject_HEAD PyObject *dict; @@ -38,7 +37,6 @@ typedef struct { PyObject *end; PyObject *reason; } PyUnicodeErrorObject; -#endif typedef struct { PyObject_HEAD @@ -235,7 +233,6 @@ PyAPI_FUNC(void) PyErr_SetInterrupt(void); PyAPI_FUNC(void) PyErr_SyntaxLocation(const char *, int); PyAPI_FUNC(PyObject *) PyErr_ProgramText(const char *, int); -#ifdef Py_USING_UNICODE /* The following functions are used to create and modify unicode exceptions from C */ @@ -297,7 +294,6 @@ PyAPI_FUNC(int) PyUnicodeDecodeError_SetReason( PyObject *, const char *); PyAPI_FUNC(int) PyUnicodeTranslateError_SetReason( PyObject *, const char *); -#endif /* These APIs aren't really part of the error implementation, but -- cgit v1.2.1