summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorNikita Nemkin <nikita@nemkin.ru>2013-05-04 22:59:27 +0600
committerNikita Nemkin <nikita@nemkin.ru>2013-05-04 22:59:27 +0600
commit530247a19fbc1cc268c0a46391071350df608695 (patch)
tree02c1fab0f4b551c0ee16e3cedfb433b4c302d059 /Cython/Compiler/ModuleNode.py
parent19e882525b3906bd62e65069a7086801a8d6b034 (diff)
downloadcython-530247a19fbc1cc268c0a46391071350df608695.tar.gz
Cython utility cdef classes are internal by default. Fixes #775.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index ac394add2..0e63dd2ca 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -82,6 +82,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# Ensure that we don't generate import code for these entries!
for entry in scope.c_class_entries:
entry.type.module_name = self.full_module_name
+ entry.type.scope.directives["internal"] = True
self.scope.merge_in(scope)