diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 12:16:46 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 12:16:46 +0200 |
commit | ba86008aac6890c5c4a2c6d30ea8110f228d483e (patch) | |
tree | c25cb83a4737b8bf8d8b60f171e374d916d8f9a5 /Python/modsupport.c | |
parent | f0ba8f8e86075600cfa41ce2db1217c6fac0ffb6 (diff) | |
download | cpython-ba86008aac6890c5c4a2c6d30ea8110f228d483e.tar.gz |
Issue #19569: Compiler warnings are now emitted if use most of deprecated
functions.
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r-- | Python/modsupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index aabee8fa59..35b529b07b 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -286,8 +286,8 @@ do_mkvalue(const char **p_format, va_list *p_va, int flags) } else { if (n < 0) - n = Py_UNICODE_strlen(u); - v = PyUnicode_FromUnicode(u, n); + n = wcslen(u); + v = PyUnicode_FromWideChar(u, n); } return v; } |