From a48f3ab8951fa97844f2a4fa368483af968b7b73 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 30 Mar 2008 06:40:17 +0000 Subject: Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum. --- Parser/Python.asdl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Parser/Python.asdl') diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 250e9ac7e2..a4394c9adf 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -98,11 +98,8 @@ module Python version "$Revision$" comprehension = (expr target, expr iter, expr* ifs) -- not sure what to call the first argument for raise and except - -- TODO(jhylton): Figure out if there is a better way to handle - -- lineno and col_offset fields, particularly when - -- ast is exposed to Python. - excepthandler = (expr? type, expr? name, stmt* body, int lineno, - int col_offset) + excepthandler = ExceptHandler(expr? type, expr? name, stmt* body) + attributes (int lineno, int col_offset) arguments = (expr* args, identifier? vararg, identifier? kwarg, expr* defaults) -- cgit v1.2.1