Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 42815:f81d94c05a0e
Use unicode
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 25 Aug 2007 01:04:34 +0000 |
| parents | a99ec4befda8 |
| children | 5355337709e1 |
line wrap: on
line diff
--- a/Python/sysmodule.c Sat Aug 25 01:04:21 2007 +0000 +++ b/Python/sysmodule.c Sat Aug 25 01:04:34 2007 +0000 @@ -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",
