mirror of
https://github.com/python/cpython.git
synced 2025-09-06 08:51:39 +00:00
Issue #19569: Compiler warnings are now emitted if use most of deprecated
functions.
This commit is contained in:
parent
6107f46bfb
commit
460bd0d284
18 changed files with 143 additions and 142 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue