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
8cd04aeb
Commit
8cd04aeb
authored
Aug 16, 2018
by
di68kap
Browse files
- DHParser: syntaxtree.py: compatibility fix for Python 3.4
parent
4bc268e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/syntaxtree.py
View file @
8cd04aeb
...
...
@@ -590,7 +590,8 @@ class Node(collections.abc.Sized):
if
hasattr
(
node
,
'_xml_attr'
):
txt
.
extend
(
' `(%s "%s")'
%
(
k
,
v
)
for
k
,
v
in
node
.
attr
.
items
())
if
src
:
txt
.
append
(
" `(pos %i %i %i)"
%
(
node
.
pos
,
*
line_col
(
lbreaks
,
node
.
pos
)))
line
,
col
=
line_col
(
lbreaks
,
node
.
pos
)
txt
.
append
(
" `(pos %i %i %i)"
%
(
node
.
pos
,
line
,
col
))
if
showerrors
and
node
.
errors
:
txt
.
append
(
" `(err `%s)"
%
' '
.
join
(
str
(
err
)
for
err
in
node
.
errors
))
return
""
.
join
(
txt
)
+
'
\n
'
...
...
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