From: Robert Bradshaw Date: Fri, 27 Mar 2009 19:51:09 +0000 (-0700) Subject: Add stdexcept when except+ syntax is used. X-Git-Tag: 0.12.alpha0~334^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e46bfff2c70c467738ec39e7479ef9f38c792cc1;p=cython.git Add stdexcept when except+ syntax is used. --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ce6a1af0..1757a7d7 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -575,6 +575,7 @@ class CFuncDeclaratorNode(CDeclaratorNode): self.exception_value.analyse_const_expression(env) 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):