From 57c0f2e61c8a5893c37e576a3a03ba5e57c1132c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 20 Nov 2016 09:13:07 +0200 Subject: Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. --- Parser/tokenizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Parser') 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; } -- cgit v1.2.1