Commit fe537135 authored by Neal Norwitz's avatar Neal Norwitz

Use unicode

parent 9406f5ca
......@@ -1931,7 +1931,7 @@ call(char* module, char* function, PyObject* args)
if (!args)
return NULL;
name = PyString_FromString(module);
name = PyUnicode_FromString(module);
if (!name)
return NULL;
mod = PyImport_Import(name);
......@@ -3409,7 +3409,7 @@ PyMODINIT_FUNC init_sre(void)
Py_DECREF(x);
}
x = PyString_FromString(copyright);
x = PyUnicode_FromString(copyright);
if (x) {
PyDict_SetItemString(d, "copyright", x);
Py_DECREF(x);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment