From 0da972decf6fccab3c8cf4ffc72de2d6a2d59cc0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 28 Sep 2017 09:45:47 +0200 Subject: Fix error handling when importing NumPy for Pythran modules. --- Cython/Compiler/Symtab.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Cython/Compiler/Symtab.py') diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 3a3f6e61f..32e10b554 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -901,10 +901,6 @@ class Scope(object): def use_entry_utility_code(self, entry): self.global_scope().use_entry_utility_code(entry) - def generate_library_function_declarations(self, code): - # Generate extern decls for C library funcs used. - pass - def defines_any(self, names): # Test whether any of the given names are defined in this scope. for name in names: @@ -1240,10 +1236,6 @@ class ModuleScope(Scope): scope = scope.find_submodule(submodule) return scope - def generate_library_function_declarations(self, code): - if self.directives['np_pythran']: - code.putln("import_array();") - def lookup_submodule(self, name): # Return scope for submodule of this module, or None. if '.' in name: -- cgit v1.2.1