From af0fa8e135366e88124249e574a7ac6823449948 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 19 Dec 2008 03:03:50 +0100 Subject: [PATCH] allow skipping GIL checks on nodes generated by transforms --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index c4bcd674..ff02b7f8 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -344,7 +344,7 @@ class ExprNode(Node): error(self.pos, "Address is not constant") def gil_check(self, env): - if env.nogil and self.type.is_pyobject: + if env is not None and env.nogil and self.type.is_pyobject: self.gil_error() # ----------------- Result Allocation ----------------- -- 2.26.2