summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/module.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-27 02:50:52 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-27 02:50:52 (GMT)
commitefee9f5f1d4b404785b91242b62aa7af22de9b47 (patch)
tree09a549e51e1728ad4f94ee42d8a4e095d84662f3 /Modules/_sqlite/module.c
parentae404e2e0a957e1e584b476e21c51201e611ab44 (diff)
downloadcpython-efee9f5f1d4b404785b91242b62aa7af22de9b47.zip
cpython-efee9f5f1d4b404785b91242b62aa7af22de9b47.tar.gz
cpython-efee9f5f1d4b404785b91242b62aa7af22de9b47.tar.bz2
Use unicode in more places. Fixes a problem with str8 + str in test.
Diffstat (limited to 'Modules/_sqlite/module.c')
-rw-r--r--Modules/_sqlite/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 4525c61..61ac0a1 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -359,13 +359,13 @@ PyMODINIT_FUNC init_sqlite3(void)
Py_DECREF(tmp_obj);
}
- if (!(tmp_obj = PyString_FromString(PYSQLITE_VERSION))) {
+ if (!(tmp_obj = PyUnicode_FromString(PYSQLITE_VERSION))) {
goto error;
}
PyDict_SetItemString(dict, "version", tmp_obj);
Py_DECREF(tmp_obj);
- if (!(tmp_obj = PyString_FromString(sqlite3_libversion()))) {
+ if (!(tmp_obj = PyUnicode_FromString(sqlite3_libversion()))) {
goto error;
}
PyDict_SetItemString(dict, "sqlite_version", tmp_obj);