8000 [3.6] Remove unconditional error on async/await name usage (#33) · python/typed_ast@5d5128f · GitHub
[go: up one dir, main page]

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

Commit 5d5128f

Browse files
authored
[3.6] Remove unconditional error on async/await name usage (#33)
1 parent e29bd53 commit 5d5128f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ast3/Python/ast.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,14 +1018,6 @@ forbidden_name(struct compiling *c, identifier name, const node *n,
10181018
ast_error(c, n, "assignment to keyword");
10191019
return 1;
10201020
}
1021-
if (PyUnicode_CompareWithASCIIString(name, "async") == 0 ||
1022-
PyUnicode_CompareWithASCIIString(name, "await") == 0)
1023-
{
1024-
ast_error(c, n,
1025-
"'async' and 'await' will become reserved keywords"
1026-
" in Python 3.7");
1027-
return 1;
1028-
}
10291021
if (full_checks) {
10301022
const char * const *p;
10311023
for (p = FORBIDDEN; *p; p++) {

0 commit comments

Comments
 (0)
0