summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-26 03:55:15 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-26 03:55:15 (GMT)
commitfe53713506b93692d0fe7c8b65efd0dc600854e1 (patch)
tree0b371a1595e81cc90ef2af004f599595f6c82436 /Modules/_sre.c
parent9406f5cadbaf4df5f7e4ec767959c7f01a41fec6 (diff)
downloadcpython-fe53713506b93692d0fe7c8b65efd0dc600854e1.zip
cpython-fe53713506b93692d0fe7c8b65efd0dc600854e1.tar.gz
cpython-fe53713506b93692d0fe7c8b65efd0dc600854e1.tar.bz2
Use unicode
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 295bc93..20f98ca 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -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);