Commit ff0b1b1e authored by Robert Bradshaw's avatar Robert Bradshaw

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

parent f8bc0914
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
Cython Changelog Cython Changelog
================ ================
0.20.3
===================
Bugs fixed
----------
* Correctly handle `from cython.submodule comport name``.
0.20.2 (2014-06-16) 0.20.2 (2014-06-16)
=================== ===================
......
...@@ -776,10 +776,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations): ...@@ -776,10 +776,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
# from cython.parallel cimport parallel, prange, ... # from cython.parallel cimport parallel, prange, ...
self.parallel_directives[as_name or name] = qualified_name self.parallel_directives[as_name or name] = qualified_name
elif self.is_cython_directive(full_name): elif self.is_cython_directive(full_name):
if as_name is None: self.directive_names[as_name or name] = full_name
as_name = full_name
self.directive_names[as_name] = full_name
if kind is not None: if kind is not None:
self.context.nonfatal_error(PostParseError(pos, self.context.nonfatal_error(PostParseError(pos,
"Compiler directive imports must be plain imports")) "Compiler directive imports must be plain imports"))
......
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