diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 07:13:40 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 07:13:40 (GMT) |
commit | a98c4a984b34f887076f4171b1e3303e164cbddf (patch) | |
tree | 78f6f0fbbc6728e24d5478aadb7bfe1d871b244f /Parser | |
parent | f6f15918087f2fae652634303a79f9cc6bc421ce (diff) | |
parent | 06515833fef7b8b5c7968edf72367d94ff7eb1e0 (diff) | |
download | cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.zip cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.gz cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.bz2 |
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 8317293..0fa3aeb 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -446,7 +446,7 @@ fp_readl(char *s, int size, struct tok_state *tok) } if (PyUnicode_CheckExact(bufobj)) { - buf = _PyUnicode_AsStringAndSize(bufobj, &buflen); + buf = PyUnicode_AsUTF8AndSize(bufobj, &buflen); if (buf == NULL) { goto error; } |