mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Convert a bunch of constant strings in C to unicode.
This commit is contained in:
parent
d6d2f2f939
commit
53cbdaa84c
7 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue