commit | 06515833fef7b8b5c7968edf72367d94ff7eb1e0 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 09:13:07 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 09:13:07 2016 +0200 |
tree | 58a7c06bba8141883a5e5c8621d2b0683ae9fe2e | |
parent | e20973926a2ec19c4b87e460dc6f0edb478ce352 [diff] [blame] |
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index ecf6dc1..8542efd 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c
@@ -708,7 +708,7 @@ Py_TYPE(newline_obj)->tp_name); return -1; } - newline = _PyUnicode_AsString(newline_obj); + newline = PyUnicode_AsUTF8(newline_obj); if (newline == NULL) return -1; }