summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-04-10 07:37:26 +0300
committerEli Bendersky <eliben@gmail.com>2011-04-10 07:37:26 +0300
commitae969fff7c82badeba0cfd4e9f4f78841d9df38e (patch)
treebadacc431961ca5f2cfad5c74fa0f3c256e51a5b /Python/symtable.c
parent57e619c04beeea408f5bdad7e5686f4d30c9b6ea (diff)
downloadcpython-ae969fff7c82badeba0cfd4e9f4f78841d9df38e.tar.gz
Issue #9904: fix and clarify some comments + fix indentation in symtable code
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 15ba6b5e2f..8040665b58 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -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: