From: Lisandro Dalcin Date: Fri, 1 Apr 2011 00:15:41 +0000 (-0300) Subject: disable generation of api code for pxd entries X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5808027591d08e3d3a8da08054195709e12e09d3;p=cython.git disable generation of api code for pxd entries --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index bb4768e4..42593075 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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)