diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 09:13:07 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 09:13:07 +0200 |
commit | 57c0f2e61c8a5893c37e576a3a03ba5e57c1132c (patch) | |
tree | 4ae45e80ff909099311fac3f431486e9dd5ade62 /Parser | |
parent | f16ff20fd73de317a70840fc339f8083c45ea466 (diff) | |
download | cpython-57c0f2e61c8a5893c37e576a3a03ba5e57c1132c.tar.gz |
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 8317293796..0fa3aebc0f 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; } |