Fix for cdef extern classes
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 11 Jun 2008 02:11:59 +0000 (19:11 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 11 Jun 2008 02:11:59 +0000 (19:11 -0700)
Cython/Compiler/Nodes.py

index 256e8f1999bc115fc84dd76b7e154defa164750e..c059cf266c581ab2a535547c1177780a2c0ec0dd 100644 (file)
@@ -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: