Commit ff0b1b1e authored by Robert Bradshaw's avatar Robert Bradshaw

Correctly handle `from cython.submodule comport name``.

parent f8bc0914
......@@ -2,6 +2,16 @@
Cython Changelog
================
0.20.3
===================
Bugs fixed
----------
* Correctly handle `from cython.submodule comport name``.
0.20.2 (2014-06-16)
===================
......
......@@ -776,10 +776,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
# from cython.parallel cimport parallel, prange, ...
self.parallel_directives[as_name or name] = qualified_name
elif self.is_cython_directive(full_name):
if as_name is None:
as_name = full_name
self.directive_names[as_name] = full_name
self.directive_names[as_name or name] = full_name
if kind is not None:
self.context.nonfatal_error(PostParseError(pos,
"Compiler directive imports must be plain imports"))
......@@ -1684,7 +1681,7 @@ if VALUE is not None:
return None
else:
return self.visit_ClassDefNode(node)
def visit_CStructOrUnionDefNode(self, node):
# Create a wrapper node if needed.
# We want to use the struct type information (so it can't happen
......
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