summaryrefslogtreecommitdiffstats
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-04-10 04:37:26 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-04-10 04:37:26 (GMT)
commitdd97fbb2dcfbfbf701b5290b666a62fed6a76fb2 (patch)
treed68e07e3c46c3c3ec1a3f60d674d87825f5e4b1d /Python/symtable.c
parent1929983518098d7bc370bd7ecb524626d6bd4a66 (diff)
downloadcpython-dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2.zip
cpython-dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2.tar.gz
cpython-dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2.tar.bz2
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 15ba6b5..8040665 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: