diff options
author | Georg Brandl <georg@python.org> | 2008-03-30 06:40:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-30 06:40:17 (GMT) |
commit | a48f3ab8951fa97844f2a4fa368483af968b7b73 (patch) | |
tree | 59349d2cbbcb23204391adcd8c1a37896d2ab16e /Python/ast.c | |
parent | c15317efcd21015a2e076eb0413043c74d84056f (diff) | |
download | cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.zip cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.tar.gz cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.tar.bz2 |
Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/ast.c b/Python/ast.c index bc91805..cf9a06a 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -2830,7 +2830,7 @@ ast_for_except_clause(struct compiling *c, const node *exc, node *body) if (!suite_seq) return NULL; - return excepthandler(NULL, NULL, suite_seq, LINENO(exc), + return ExceptHandler(NULL, NULL, suite_seq, LINENO(exc), exc->n_col_offset, c->c_arena); } else if (NCH(exc) == 2) { @@ -2844,7 +2844,7 @@ ast_for_except_clause(struct compiling *c, const node *exc, node *body) if (!suite_seq) return NULL; - return excepthandler(expression, NULL, suite_seq, LINENO(exc), + return ExceptHandler(expression, NULL, suite_seq, LINENO(exc), exc->n_col_offset, c->c_arena); } else if (NCH(exc) == 4) { @@ -2862,7 +2862,7 @@ ast_for_except_clause(struct compiling *c, const node *exc, node *body) if (!suite_seq) return NULL; - return excepthandler(expression, e, suite_seq, LINENO(exc), + return ExceptHandler(expression, e, suite_seq, LINENO(exc), exc->n_col_offset, c->c_arena); } |