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
3d5523b5
Commit
3d5523b5
authored
Oct 26, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass correct CythonScope into CythonUtilityScope tree generation (used to be None)
parent
c541223a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/Buffer.py
Cython/Compiler/Buffer.py
+1
-1
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+1
-1
Cython/Compiler/Pipeline.py
Cython/Compiler/Pipeline.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
No files found.
Cython/Compiler/Buffer.py
View file @
3d5523b5
...
...
@@ -574,7 +574,7 @@ class GetAndReleaseBufferUtilityCode(object):
def
__hash__
(
self
):
return
24342342
def
get_tree
(
self
):
pass
def
get_tree
(
self
,
**
kwargs
):
pass
def
put_code
(
self
,
output
):
code
=
output
[
'utility_code_def'
]
...
...
Cython/Compiler/Code.py
View file @
3d5523b5
...
...
@@ -318,7 +318,7 @@ class UtilityCodeBase(object):
def __str__(self):
return "
<%
s
(
%
s
)
>
" % (type(self).__name__, self.name)
def get_tree(self):
def get_tree(self
, **kwargs
):
pass
...
...
Cython/Compiler/Pipeline.py
View file @
3d5523b5
...
...
@@ -127,7 +127,7 @@ def inject_utility_code_stage_factory(context):
for
dep
in
utilcode
.
requires
:
if
dep
not
in
added
and
dep
not
in
module_node
.
scope
.
utility_code_list
:
module_node
.
scope
.
utility_code_list
.
append
(
dep
)
tree
=
utilcode
.
get_tree
()
tree
=
utilcode
.
get_tree
(
cython_scope
=
context
.
cython_scope
)
if
tree
:
module_node
.
merge_in
(
tree
.
body
,
tree
.
scope
,
merge_scope
=
True
)
return
module_node
...
...
Cython/Compiler/PyrexTypes.py
View file @
3d5523b5
...
...
@@ -3202,7 +3202,7 @@ class ToPyStructUtilityCode(object):
def
__hash__
(
self
):
return
hash
(
self
.
header
)
def
get_tree
(
self
):
def
get_tree
(
self
,
**
kwargs
):
pass
def
put_code
(
self
,
output
):
...
...
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