Commit 25b44c99 authored by Stefan Behnel's avatar Stefan Behnel

merge 0.17 branch into master

parents a30d7e5a 37724ccc
......@@ -26,7 +26,7 @@ class StringParseContext(Main.Context):
self.module_name = name
def find_module(self, module_name, relative_to = None, pos = None, need_pxd = 1):
if module_name != self.module_name:
if module_name not in (self.module_name, 'cython'):
raise AssertionError("Not yet supporting any cimports/includes from string code snippets")
return ModuleScope(module_name, parent_module = None, context = self)
......
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