Commit 005f99c1 authored by Stefan Behnel's avatar Stefan Behnel

removed redundant function-local import

parent f58f222c
......@@ -1381,7 +1381,9 @@ class FuncDefNode(StatNode, BlockNode):
self.body.generate_execution_code(code)
def generate_function_definitions(self, env, code):
import Buffer, MemoryView
import Buffer
if self.return_type.is_memoryviewslice:
import MemoryView
lenv = self.local_scope
if lenv.is_closure_scope and not lenv.is_passthrough:
......@@ -1460,7 +1462,6 @@ class FuncDefNode(StatNode, BlockNode):
if self.return_type.is_pyobject:
init = " = NULL"
elif self.return_type.is_memoryviewslice:
import MemoryView
init = ' = ' + MemoryView.memslice_entry_init
code.putln(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment