disable generation of api code for pxd entries
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 1 Apr 2011 00:15:41 +0000 (21:15 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 1 Apr 2011 00:15:41 +0000 (21:15 -0300)
Cython/Compiler/ModuleNode.py

index bb4768e44aef592d616e488ed478984229afd24d..425930757e66d333e7b5a4d2cadb5615639f5bc4 100644 (file)
@@ -168,7 +168,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
         return env.qualified_name.replace(".", "__")
     
     def generate_api_code(self, env, result):
-        def api_entries(entries, pxd=1):
+        def api_entries(entries, pxd=0):
             return [entry for entry in entries
                     if entry.api or (pxd and entry.defined_in_pxd)]
         api_vars = api_entries(env.var_entries)