From e46bfff2c70c467738ec39e7479ef9f38c792cc1 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 27 Mar 2009 12:51:09 -0700 Subject: [PATCH] Add stdexcept when except+ syntax is used. --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.26.2