Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index 250e9ac..a4394c9 100644
--- a/Parser/Python.asdl
+++ b/Parser/Python.asdl
@@ -98,11 +98,8 @@
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)