Author: neal.norwitz
Date: Sat Aug 25 03:04:34 2007
New Revision: 57442

Modified:
   python/branches/py3k/Python/sysmodule.c
Log:
Use unicode

Modified: python/branches/py3k/Python/sysmodule.c
==============================================================================
--- python/branches/py3k/Python/sysmodule.c     (original)
+++ python/branches/py3k/Python/sysmodule.c     Sat Aug 25 03:04:34 2007
@@ -829,7 +829,7 @@
                if (warnoptions == NULL)
                        return;
        }
-       str = PyString_FromString(s);
+       str = PyUnicode_FromString(s);
        if (str != NULL) {
                PyList_Append(warnoptions, str);
                Py_DECREF(str);
@@ -1080,11 +1080,11 @@
        SET_SYS_FROM_STRING("platform",
                            PyUnicode_FromString(Py_GetPlatform()));
        SET_SYS_FROM_STRING("executable",
-                           PyString_FromString(Py_GetProgramFullPath()));
+                           PyUnicode_FromString(Py_GetProgramFullPath()));
        SET_SYS_FROM_STRING("prefix",
-                           PyString_FromString(Py_GetPrefix()));
+                           PyUnicode_FromString(Py_GetPrefix()));
        SET_SYS_FROM_STRING("exec_prefix",
-                           PyString_FromString(Py_GetExecPrefix()));
+                           PyUnicode_FromString(Py_GetExecPrefix()));
        SET_SYS_FROM_STRING("maxint",
                            PyInt_FromLong(PyInt_GetMax()));
        SET_SYS_FROM_STRING("maxunicode",
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to