summaryrefslogtreecommitdiff
path: root/Python/future.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 09:13:07 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 09:13:07 +0200
commit57c0f2e61c8a5893c37e576a3a03ba5e57c1132c (patch)
tree4ae45e80ff909099311fac3f431486e9dd5ade62 /Python/future.c
parentf16ff20fd73de317a70840fc339f8083c45ea466 (diff)
downloadcpython-57c0f2e61c8a5893c37e576a3a03ba5e57c1132c.tar.gz
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
Diffstat (limited to 'Python/future.c')
-rw-r--r--Python/future.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/future.c b/Python/future.c
index d94b23d4d2..9c1f43032a 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -21,7 +21,7 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, PyObject *filename)
names = s->v.ImportFrom.names;
for (i = 0; i < asdl_seq_LEN(names); i++) {
alias_ty name = (alias_ty)asdl_seq_GET(names, i);
- const char *feature = _PyUnicode_AsString(name->name);
+ const char *feature = PyUnicode_AsUTF8(name->name);
if (!feature)
return 0;
if (strcmp(feature, FUTURE_NESTED_SCOPES) == 0) {