summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-23 21:42:55 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-23 21:42:55 (GMT)
commit53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219 (patch)
tree40d00a2f819472aa21bd32b505a53c394019db82 /Modules/bz2module.c
parentd6d2f2f93919d035929ac9d02244657a9b604413 (diff)
downloadcpython-53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219.zip
cpython-53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219.tar.gz
cpython-53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219.tar.bz2
Convert a bunch of constant strings in C to unicode.
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index c913c3f..65e3ae7 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -2048,7 +2048,7 @@ initbz2(void)
if (m == NULL)
return;
- PyModule_AddObject(m, "__author__", PyString_FromString(__author__));
+ PyModule_AddObject(m, "__author__", PyUnicode_FromString(__author__));
Py_INCREF(&BZ2File_Type);
PyModule_AddObject(m, "BZ2File", (PyObject *)&BZ2File_Type);