mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Issue #9904: fix and clarify some comments + fix indentation in symtable code
This commit is contained in:
parent
1929983518
commit
dd97fbb2dc
2 changed files with 11 additions and 8 deletions
|
@ -750,7 +750,7 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free,
|
|||
goto error;
|
||||
}
|
||||
|
||||
/* Recursively call analyze_block() on each child block.
|
||||
/* Recursively call analyze_child_block() on each child block.
|
||||
|
||||
newbound, newglobal now contain the names visible in
|
||||
nested blocks. The free variables in the children will
|
||||
|
@ -1205,9 +1205,9 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
|
|||
case Raise_kind:
|
||||
if (s->v.Raise.exc) {
|
||||
VISIT(st, expr, s->v.Raise.exc);
|
||||
if (s->v.Raise.cause) {
|
||||
VISIT(st, expr, s->v.Raise.cause);
|
||||
}
|
||||
if (s->v.Raise.cause) {
|
||||
VISIT(st, expr, s->v.Raise.cause);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case TryExcept_kind:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue