mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -2466,7 +2466,7 @@ test_c_api(PySetObject *so)
|
|||
/* Exercise direct iteration */
|
||||
i = 0, count = 0;
|
||||
while (_PySet_NextEntry((PyObject *)dup, &i, &x, &hash)) {
|
||||
s = _PyUnicode_AsString(x);
|
||||
s = PyUnicode_AsUTF8(x);
|
||||
assert(s && (s[0] == 'a' || s[0] == 'b' || s[0] == 'c'));
|
||||
count++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue