From 5808027591d08e3d3a8da08054195709e12e09d3 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Thu, 31 Mar 2011 21:15:41 -0300 Subject: [PATCH] disable generation of api code for pxd entries --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2