commit | 53cbdaa84c9e3c5f8b7ff2446452ff4d6f536219 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Thu Aug 23 21:42:55 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Thu Aug 23 21:42:55 2007 +0000 |
tree | 40d00a2f819472aa21bd32b505a53c394019db82 | |
parent | d6d2f2f93919d035929ac9d02244657a9b604413 [diff] [blame] |
Convert a bunch of constant strings in C to unicode.
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index badc090..fd6c0b7 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c
@@ -1039,7 +1039,7 @@ 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);