Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
1b7c3ff4
Commit
1b7c3ff4
authored
Mar 10, 2018
by
eckhart
Browse files
small adjustments in transform.py
parent
a747abd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/transform.py
View file @
1b7c3ff4
...
...
@@ -738,7 +738,7 @@ def remove_children_if(context: List[Node], condition: Callable):
node
=
context
[
-
1
]
if
node
.
children
:
node
.
result
=
tuple
(
c
for
c
in
node
.
children
if
not
condition
(
context
+
[
c
]))
pass
# @transformation_factory(Callable)
# def remove_children(context: List[Node],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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