From: Stefan Behnel Date: Thu, 9 Apr 2009 10:52:20 +0000 (+0200) Subject: merge with latest cython-devel X-Git-Tag: 0.12.alpha0~327 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6139c1a092f8dacd5c218f3438a2b27e1fbf7a7d;p=cython.git merge with latest cython-devel --- 6139c1a092f8dacd5c218f3438a2b27e1fbf7a7d diff --cc Cython/Compiler/Nodes.py index de52551e,706dbea7..8a5044b1 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@@ -539,10 -575,8 +541,9 @@@ class CFuncDeclaratorNode(CDeclaratorNo else: if self.exception_value: self.exception_value.analyse_const_expression(env) + exc_val = self.exception_value.get_constant_result_code() if self.exception_check == '+': exc_val_type = self.exception_value.type - env.add_include_file('stdexcept') if not exc_val_type.is_error and \ not exc_val_type.is_pyobject and \ not (exc_val_type.is_cfunction and not exc_val_type.return_type.is_pyobject and len(exc_val_type.args)==0):