diff Python/ast.c @ 46200:2ff88ae9850c legacy-trunk

Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
author Georg Brandl <georg@python.org>
date Sun, 30 Mar 2008 06:40:17 +0000
parents c78d3586c474
children 0deb4ab0426e
line wrap: on
line diff
--- a/Python/ast.c	Sat Mar 29 19:11:52 2008 +0000
+++ b/Python/ast.c	Sun Mar 30 06:40:17 2008 +0000
@@ -2830,7 +2830,7 @@
         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 @@
         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 @@
         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);
     }