From 176e356fb222c21a566e1491f3891fb5b94e0404 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw <robertwb@math.washington.edu> Date: Tue, 10 Jun 2008 19:11:59 -0700 Subject: [PATCH] Fix for cdef extern classes --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 256e8f19..c059cf26 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -2003,7 +2003,7 @@ class CClassDefNode(StatNode, BlockNode): else: self.base_type = base_class_entry.type has_body = self.body is not None - if self.module_name: + if self.module_name and self.visibility != 'extern': module_path = self.module_name.split(".") home_scope = env.find_imported_module(module_path, self.pos) if not home_scope: -- 2.26.2