commit | 460bd0d284caa00eb8ccc9a28836ba30765a19cb | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 12:16:46 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 12:16:46 2016 +0200 |
tree | 41169cfce0d00587f4222d3237a608b70577adfc | |
parent | 6107f46bfbe4aa7b2ddb37ca5136d1d472c3f4aa [diff] [blame] |
Issue #19569: Compiler warnings are now emitted if use most of deprecated functions.
diff --git a/Python/modsupport.c b/Python/modsupport.c index aabee8f..35b529b 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c
@@ -286,8 +286,8 @@ } else { if (n < 0) - n = Py_UNICODE_strlen(u); - v = PyUnicode_FromUnicode(u, n); + n = wcslen(u); + v = PyUnicode_FromWideChar(u, n); } return v; }