mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
This commit is contained in:
parent
e20973926a
commit
06515833fe
31 changed files with 62 additions and 62 deletions
|
@ -9325,7 +9325,7 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table,
|
|||
"configuration names must be strings or integers");
|
||||
return 0;
|
||||
}
|
||||
confname = _PyUnicode_AsString(arg);
|
||||
confname = PyUnicode_AsUTF8(arg);
|
||||
if (confname == NULL)
|
||||
return 0;
|
||||
while (lo < hi) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue