Convert a bunch of constant strings in C to unicode.

This commit is contained in:
Neal Norwitz 2007-08-23 21:42:55 +00:00
parent d6d2f2f939
commit 53cbdaa84c
7 changed files with 8 additions and 8 deletions

View file

@ -1039,7 +1039,7 @@ PyInit_zlib(void)
PyModule_AddIntConstant(m, "Z_SYNC_FLUSH", Z_SYNC_FLUSH);
PyModule_AddIntConstant(m, "Z_FULL_FLUSH", Z_FULL_FLUSH);
ver = PyString_FromString(ZLIB_VERSION);
ver = PyUnicode_FromString(ZLIB_VERSION);
if (ver != NULL)
PyModule_AddObject(m, "ZLIB_VERSION", ver);