mirror of
https://github.com/python/cpython.git
synced 2024-12-02 14:24:12 +08:00
Use unicode
This commit is contained in:
parent
9406f5cadb
commit
fe53713506
@ -1931,7 +1931,7 @@ call(char* module, char* function, PyObject* args)
|
|||||||
|
|
||||||
if (!args)
|
if (!args)
|
||||||
return NULL;
|
return NULL;
|
||||||
name = PyString_FromString(module);
|
name = PyUnicode_FromString(module);
|
||||||
if (!name)
|
if (!name)
|
||||||
return NULL;
|
return NULL;
|
||||||
mod = PyImport_Import(name);
|
mod = PyImport_Import(name);
|
||||||
@ -3409,7 +3409,7 @@ PyMODINIT_FUNC init_sre(void)
|
|||||||
Py_DECREF(x);
|
Py_DECREF(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
x = PyString_FromString(copyright);
|
x = PyUnicode_FromString(copyright);
|
||||||
if (x) {
|
if (x) {
|
||||||
PyDict_SetItemString(d, "copyright", x);
|
PyDict_SetItemString(d, "copyright", x);
|
||||||
Py_DECREF(x);
|
Py_DECREF(x);
|
||||||
|
Loading…
Reference in New Issue
Block a user