summaryrefslogtreecommitdiff
path: root/Cython/Compiler/CythonScope.py
diff options
context:
space:
mode:
authorMark Florisson <markflorisson88@gmail.com>2012-01-25 11:49:22 +0000
committerMark Florisson <markflorisson88@gmail.com>2012-01-29 12:07:20 +0000
commita55ce63c725619c994caa19b4d0d390551af7a3d (patch)
tree77d2e54a2cbeba38a7c0f297e65243c7d7e70659 /Cython/Compiler/CythonScope.py
parentd88146d0f46f911b599b8e164ea56576479125ba (diff)
downloadcython-a55ce63c725619c994caa19b4d0d390551af7a3d.tar.gz
Use whitelist for declaring entries in a scope
Diffstat (limited to 'Cython/Compiler/CythonScope.py')
-rw-r--r--Cython/Compiler/CythonScope.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cython/Compiler/CythonScope.py b/Cython/Compiler/CythonScope.py
index 63bcc794f..1beae2464 100644
--- a/Cython/Compiler/CythonScope.py
+++ b/Cython/Compiler/CythonScope.py
@@ -115,9 +115,10 @@ class CythonScope(ModuleScope):
viewscope, cython_scope=self)
view_utility_scope = MemoryView.view_utility_code.declare_in_scope(
- self.viewscope, cython_scope=self)
+ self.viewscope, cython_scope=self,
+ whitelist=MemoryView.view_utility_whitelist)
- self.entries["array"] = view_utility_scope.lookup("array")
+ self.entries["array"] = view_utility_scope.entries.pop("array")
def create_cython_scope(context):