Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
ff0b1b1e
Commit
ff0b1b1e
authored
Jul 03, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly handle `from cython.submodule comport name``.
parent
f8bc0914
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
CHANGES.rst
CHANGES.rst
+10
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+2
-5
No files found.
CHANGES.rst
View file @
ff0b1b1e
...
@@ -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)
===================
===================
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
ff0b1b1e
...
@@ -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"
))
...
@@ -1684,7 +1681,7 @@ if VALUE is not None:
...
@@ -1684,7 +1681,7 @@ if VALUE is not None:
return
None
return
None
else
:
else
:
return
self
.
visit_ClassDefNode
(
node
)
return
self
.
visit_ClassDefNode
(
node
)
def
visit_CStructOrUnionDefNode
(
self
,
node
):
def
visit_CStructOrUnionDefNode
(
self
,
node
):
# Create a wrapper node if needed.
# Create a wrapper node if needed.
# We want to use the struct type information (so it can't happen
# We want to use the struct type information (so it can't happen
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment