From: Robert Bradshaw Date: Wed, 11 Jun 2008 02:11:59 +0000 (-0700) Subject: Fix for cdef extern classes X-Git-Tag: 0.9.8rc1~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=176e356fb222c21a566e1491f3891fb5b94e0404;p=cython.git Fix for cdef extern classes --- 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: