8000 Define _PyUnicode_DecodeUnicodeEscape even on Python 3.6+ (#171) · alvistack/python-typed_ast@1232867 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1232867

Browse files
authored
Define _PyUnicode_DecodeUnicodeEscape even on Python 3.6+ (python#171)
1 parent 3a7ac0c commit 1232867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ast3/Python/ast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ _PyBytes_DecodeEscape(const char *s,
5656
return PyBytes_DecodeEscape(s, len, errors, unicode, recode_encoding);
5757
}
5858

59+
#endif
60+
5961
PyObject *
6062
_PyUnicode_DecodeUnicodeEscape(const char *s,
6163
Py_ssize_t size,
@@ -66,8 +68,6 @@ _PyUnicode_DecodeUnicodeEscape(const char *s,
6668
return PyUnicode_DecodeUnicodeEscape(s, size, errors);
6769
}
6870

69-
#endif
70-
7171
static int validate_stmts(asdl_seq *);
7272
static int validate_exprs(asdl_seq *, expr_context_ty, int);
7373
static int validate_nonempty_seq(asdl_seq *, const char *, const char *);

0 commit comments

Comments
 (0)
0