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/structseq.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/structseq.c')
-rw-r--r-- | Objects/structseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c index e315cbace5..5489aef6d0 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -194,7 +194,7 @@ structseq_repr(PyStructSequence *obj) repr = PyObject_Repr(val); if (repr == NULL) return NULL; - crepr = _PyUnicode_AsString(repr); + crepr = PyUnicode_AsUTF8(repr); if (crepr == NULL) { Py_DECREF(repr); return NULL; |