diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-31 05:14:30 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-31 05:14:30 (GMT) |
commit | ad74aa8dc015fab019ffa965f45cc3437ad152c2 (patch) | |
tree | 2e4c8aad0da2d1d65be842895efc52af6d8adc64 /Parser | |
parent | d35759388b224106c4331812d5931d8ce5ae8c07 (diff) | |
download | cpython-ad74aa8dc015fab019ffa965f45cc3437ad152c2.zip cpython-ad74aa8dc015fab019ffa965f45cc3437ad152c2.tar.gz cpython-ad74aa8dc015fab019ffa965f45cc3437ad152c2.tar.bz2 |
Merged revisions 62047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62047 | georg.brandl | 2008-03-29 23:40:17 -0700 (Sat, 29 Mar 2008) | 2 lines
Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
........
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/Python.asdl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 8686709..b4dd792 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -101,11 +101,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, identifier? name, stmt* body, int lineno, - int col_offset) + excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body) + attributes (int lineno, int col_offset) arguments = (arg* args, identifier? vararg, expr? varargannotation, arg* kwonlyargs, identifier? kwarg, |