Skip to content

Commit edb6fd0

Browse files
author
Arzaroth Lekva
committed
passing correct parameters to child nodes
1 parent 7f475ed commit edb6fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rapidxml/rapidxml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def get_nodes(self, name):
1818
node = self.first_node(name)
1919
if node is None:
2020
return None
21-
res = [DictNode().copy(node)]
21+
res = [DictNode(self.attribute_prefix, self.cdata_key).copy(node)]
2222
node = node.next_sibling(name)
2323
if node is None:
2424
return res[0]
2525
while node is not None:
26-
res.append(DictNode().copy(node))
26+
res.append(DictNode(self.attribute_prefix, self.cdata_key).copy(node))
2727
node = node.next_sibling(name)
2828
return res
2929

0 commit comments

Comments
 (0)