diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 01:04:34 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 01:04:34 (GMT) |
commit | aefab1e2ac717fce622213cace75adf4112aa84e (patch) | |
tree | 764478e528bfb663b2fd9e78e21b811feacd0e07 /Python/sysmodule.c | |
parent | e0a0a6e93729a44240de6bf78bcf052c4b75427d (diff) | |
download | cpython-aefab1e2ac717fce622213cace75adf4112aa84e.zip cpython-aefab1e2ac717fce622213cace75adf4112aa84e.tar.gz cpython-aefab1e2ac717fce622213cace75adf4112aa84e.tar.bz2 |
Use unicode
Diffstat (limited to 'Python/sysmodule.c')
-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 4f9313a..6ccd3e9 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", |