diff options
-rw-r--r-- | Python/compile.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 2f98067..bc568c9 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4496,6 +4496,17 @@ symtable_node(struct symtable *st, node *n) break; } + case assert_stmt: + if (Py_OptimizeFlag) + return; + if (NCH(n) == 2) { + n = CHILD(n, 1); + goto loop; + } else { + symtable_node(st, CHILD(n, 1)); + n = CHILD(n, 3); + goto loop; + } case except_clause: if (NCH(n) == 4) symtable_assign(st, CHILD(n, 3), 0); |