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
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to