cython-devel

changeset 1913:5d12e7cb8dd9

Add stdexcept when except+ syntax is used.
author Robert Bradshaw <robertwb@math.washington.edu>
date Fri Mar 27 12:51:09 2009 -0700 (2 years ago)
parents d3df4b188b83
children 996419a023b8
files Cython/Compiler/Nodes.py
line diff
1.1 --- a/Cython/Compiler/Nodes.py Fri Mar 27 19:09:51 2009 +0100 1.2 +++ b/Cython/Compiler/Nodes.py Fri Mar 27 12:51:09 2009 -0700 1.3 @@ -575,6 +575,7 @@ 1.4 self.exception_value.analyse_const_expression(env) 1.5 if self.exception_check == '+': 1.6 exc_val_type = self.exception_value.type 1.7 + env.add_include_file('stdexcept') 1.8 if not exc_val_type.is_error and \ 1.9 not exc_val_type.is_pyobject and \ 1.10 not (exc_val_type.is_cfunction and not exc_val_type.return_type.is_pyobject and len(exc_val_type.args)==0):