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

Commit

Permalink
Define _PyUnicode_DecodeUnicodeEscape even on Python 3.6+ (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Nov 10, 2021
1 parent 3a7ac0c commit 1232867
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 1232867

Please sign in to comment.