Commit 8cd04aeb authored by di68kap's avatar di68kap
Browse files

- DHParser: compatibility fix for Python 3.4

parent 4bc268e0
......@@ -590,7 +590,8 @@ class Node(
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'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment