diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 01:04:34 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 01:04:34 +0000 |
commit | 70ffe3bbf4912ec3738f2bf43cb0c0833ffdec76 (patch) | |
tree | 12dd29210c17375433ecb2810e3632e10a686441 /Python | |
parent | ba46d01e949bf2d8e791a3c9fb939edcd9792a80 (diff) | |
download | cpython-70ffe3bbf4912ec3738f2bf43cb0c0833ffdec76.tar.gz |
Use unicode
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4f9313aa47..6ccd3e9a3e 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -829,7 +829,7 @@ PySys_AddWarnOption(const char *s) 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 @@ _PySys_Init(void) 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", |