[Python-3000-checkins] r57367 - python/branches/py3k/Modules/errnomodule.c

neal.norwitz python-3000-checkins at python.org
Fri Aug 24 02:10:00 CEST 2007


Author: neal.norwitz
Date: Fri Aug 24 02:10:00 2007
New Revision: 57367

Modified:
   python/branches/py3k/Modules/errnomodule.c
Log:
Use unicode for the errno.errorcode names

Modified: python/branches/py3k/Modules/errnomodule.c
==============================================================================
--- python/branches/py3k/Modules/errnomodule.c	(original)
+++ python/branches/py3k/Modules/errnomodule.c	Fri Aug 24 02:10:00 2007
@@ -19,9 +19,9 @@
 /* Helper function doing the dictionary inserting */
 
 static void
-_inscode(PyObject *d, PyObject *de, char *name, int code)
+_inscode(PyObject *d, PyObject *de, const char *name, int code)
 {
-	PyObject *u = PyString_FromString(name);
+	PyObject *u = PyUnicode_FromString(name);
 	PyObject *v = PyInt_FromLong((long) code);
 
 	/* Don't bother checking for errors; they'll be caught at the end


More information about the Python-3000-checkins mailing list