cython-devel
changeset 1946:49523eb3abb5
Include stdexcept in all cases.
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Fri Apr 03 15:59:21 2009 -0700 (2 years ago) |
| parents | 7975aadd82b7 |
| children | ea5b7e6e9db73b1182bb377c |
| files | Cython/Compiler/Nodes.py |
line diff
1.1 --- a/Cython/Compiler/Nodes.py Fri Apr 03 15:57:01 2009 -0700
1.2 +++ b/Cython/Compiler/Nodes.py Fri Apr 03 15:59:21 2009 -0700
1.3 @@ -565,6 +565,8 @@
1.4
1.5 exc_val = None
1.6 exc_check = 0
1.7 + if self.exception_check == '+':
1.8 + env.add_include_file('stdexcept')
1.9 if return_type.is_pyobject \
1.10 and (self.exception_value or self.exception_check) \
1.11 and self.exception_check != '+':
1.12 @@ -575,7 +577,6 @@
1.13 self.exception_value.analyse_const_expression(env)
1.14 if self.exception_check == '+':
1.15 exc_val_type = self.exception_value.type
1.16 - env.add_include_file('stdexcept')
1.17 if not exc_val_type.is_error and \
1.18 not exc_val_type.is_pyobject and \
1.19 not (exc_val_type.is_cfunction and not exc_val_type.return_type.is_pyobject and len(exc_val_type.args)==0):
