[Python-checkins] python/dist/src/Include pyerrors.h,2.61,2.62

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
Thu, 21 Nov 2002 12:08:37 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv4129/Include

Modified Files:
	pyerrors.h 
Log Message:
Fix PEP 293 related problems with --disable-unicode builds
reported by Michael Hudson in
http://mail.python.org/pipermail/python-dev/2002-November/030299.html


Index: pyerrors.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyerrors.h,v
retrieving revision 2.61
retrieving revision 2.62
diff -C2 -d -r2.61 -r2.62
*** pyerrors.h	3 Oct 2002 05:10:38 -0000	2.61
--- pyerrors.h	21 Nov 2002 20:08:33 -0000	2.62
***************
*** 139,144 ****
--- 139,146 ----
  PyAPI_FUNC(PyObject *) PyErr_ProgramText(char *, int);
  
+ #ifdef Py_USING_UNICODE
  /* The following functions are used to create and modify unicode
     exceptions from C */
+ 
  /* create a UnicodeDecodeError object */
  PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create(
***************
*** 199,202 ****
--- 201,205 ----
  PyAPI_FUNC(int) PyUnicodeTranslateError_SetReason(
  	PyObject *, const char *);
+ #endif