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
acc52924
Commit
acc52924
authored
Mar 29, 2018
by
di68kap
Browse files
- DHParser/syntaxtree.py: doc-strings adjusted, TODO added
parent
15ad2819
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/syntaxtree.py
View file @
acc52924
...
...
@@ -410,9 +410,9 @@ class Node(collections.abc.Sized):
@
property
def
content
(
self
)
->
str
:
"""
Returns content as string, inserting error messages where
errors occurred.
Returns content as string, omitting error messages.
"""
# TODO: Optimize with caching and StringViews
if
self
.
children
:
return
""
.
join
(
child
.
content
for
child
in
self
.
children
)
return
cast
(
str
,
self
.
_result
)
...
...
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