cosmetic
This commit is contained in:
parent
13b97d61d2
commit
bf40cb8d33
|
@ -34,10 +34,10 @@ def dumprs(rs):
|
||||||
for r in rs: dumprs(r)
|
for r in rs: dumprs(r)
|
||||||
elif isinstance(rs, minidom.Element):
|
elif isinstance(rs, minidom.Element):
|
||||||
print rs.toxml("utf-8")
|
print rs.toxml("utf-8")
|
||||||
elif isinstance(rs, minidom.Text):
|
|
||||||
print rs.data.encode("utf-8")
|
|
||||||
elif isinstance(rs, minidom.Attr):
|
elif isinstance(rs, minidom.Attr):
|
||||||
print rs.value.encode("utf-8")
|
print rs.value.encode("utf-8")
|
||||||
|
elif isinstance(rs, minidom.Text):
|
||||||
|
print rs.data.encode("utf-8")
|
||||||
else:
|
else:
|
||||||
die("type non géré: %s (%s)" % (str(rs), tr))
|
die("type non géré: %s (%s)" % (str(rs), tr))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue