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
84ed66f4
Commit
84ed66f4
authored
Dec 26, 2021
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix new visitchild() transform helper method.
parent
7f1347b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/Visitor.pxd
Cython/Compiler/Visitor.pxd
+1
-1
Cython/Compiler/Visitor.py
Cython/Compiler/Visitor.py
+2
-1
No files found.
Cython/Compiler/Visitor.pxd
View file @
84ed66f4
# cython: language_level=3
# cython: language_level=3
str
cimport
cython
...
...
Cython/Compiler/Visitor.py
View file @
84ed66f4
...
...
@@ -279,10 +279,11 @@ class VisitorTransform(TreeVisitor):
def
visitchild
(
self
,
parent
,
attr
,
idx
=
0
):
# Helper to visit specific children from Python subclasses
child
=
getattr
(
parent
,
attr
)
if
attr
is
not
None
:
if
child
is
not
None
:
node
=
self
.
_visitchild
(
child
,
parent
,
attr
,
idx
)
if
node
is
not
child
:
setattr
(
parent
,
attr
,
node
)
child
=
node
return
child
def
recurse_to_children
(
self
,
node
):
...
...
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