diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 09:13:40 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 09:13:40 +0200 |
commit | a98c4a984b34f887076f4171b1e3303e164cbddf (patch) | |
tree | 78f6f0fbbc6728e24d5478aadb7bfe1d871b244f /Objects/setobject.c | |
parent | f6f15918087f2fae652634303a79f9cc6bc421ce (diff) | |
parent | 06515833fef7b8b5c7968edf72367d94ff7eb1e0 (diff) | |
download | cpython-git-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.gz |
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r-- | Objects/setobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index 5846045376..fdb9d3600d 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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++; } |