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
Kirill Smelkov
cython
Commits
d672f6f0
Commit
d672f6f0
authored
Aug 31, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair compiler crash due to attribute error
parent
957f6b44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-1
No files found.
Cython/Compiler/Nodes.py
View file @
d672f6f0
...
@@ -197,6 +197,7 @@ class Node(object):
...
@@ -197,6 +197,7 @@ class Node(object):
is_nonecheck
=
0
is_nonecheck
=
0
is_literal
=
0
is_literal
=
0
is_terminator
=
0
is_terminator
=
0
is_wrapper
=
False
# is a DefNode wrapper for a C function
temps
=
None
temps
=
None
# All descendants should set child_attrs to a list of the attributes
# All descendants should set child_attrs to a list of the attributes
...
@@ -1616,7 +1617,6 @@ class FuncDefNode(StatNode, BlockNode):
...
@@ -1616,7 +1617,6 @@ class FuncDefNode(StatNode, BlockNode):
needs_closure
=
False
needs_closure
=
False
needs_outer_scope
=
False
needs_outer_scope
=
False
pymethdef_required
=
False
pymethdef_required
=
False
is_wrapper
=
False
is_generator
=
False
is_generator
=
False
is_generator_body
=
False
is_generator_body
=
False
is_async_def
=
False
is_async_def
=
False
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
d672f6f0
...
@@ -1697,7 +1697,7 @@ if VALUE is not None:
...
@@ -1697,7 +1697,7 @@ if VALUE is not None:
def
visit_DefNode
(
self
,
node
):
def
visit_DefNode
(
self
,
node
):
node
=
self
.
visit_FuncDefNode
(
node
)
node
=
self
.
visit_FuncDefNode
(
node
)
env
=
self
.
current_env
()
env
=
self
.
current_env
()
if
node
.
is_wrapper
:
if
isinstance
(
node
,
Nodes
.
DefNode
)
and
node
.
is_wrapper
:
env
=
env
.
parent_scope
env
=
env
.
parent_scope
if
(
not
isinstance
(
node
,
Nodes
.
DefNode
)
or
if
(
not
isinstance
(
node
,
Nodes
.
DefNode
)
or
node
.
fused_py_func
or
node
.
is_generator_body
or
node
.
fused_py_func
or
node
.
is_generator_body
or
...
...
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