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

[3.6] Remove unconditional error on async/await name usage #33

Merged
merged 1 commit into from
Mar 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions ast3/Python/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,14 +1018,6 @@ forbidden_name(struct compiling *c, identifier name, const node *n,
ast_error(c, n, "assignment to keyword");
return 1;
}
if (PyUnicode_CompareWithASCIIString(name, "async") == 0 ||
PyUnicode_CompareWithASCIIString(name, "await") == 0)
{
ast_error(c, n,
"'async' and 'await' will become reserved keywords"
" in Python 3.7");
return 1;
}
if (full_checks) {
const char * const *p;
for (p = FORBIDDEN; *p; p++) {
Expand Down