Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Define _PyUnicode_DecodeUnicodeEscape even on Python 3.6+ #171

Merged
merged 1 commit into from Nov 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions ast3/Python/ast.c
Expand Up @@ -56,6 +56,8 @@ _PyBytes_DecodeEscape(const char *s,
return PyBytes_DecodeEscape(s, len, errors, unicode, recode_encoding);
}

#endif

PyObject *
_PyUnicode_DecodeUnicodeEscape(const char *s,
Py_ssize_t size,
Expand All @@ -66,8 +68,6 @@ _PyUnicode_DecodeUnicodeEscape(const char *s,
return PyUnicode_DecodeUnicodeEscape(s, size, errors);
}

#endif

static int validate_stmts(asdl_seq *);
static int validate_exprs(asdl_seq *, expr_context_ty, int);
static int validate_nonempty_seq(asdl_seq *, const char *, const char *);
Expand Down