Skip to content

Commit 27ba8ac

Browse files
author
Amedeo BUSSI (contractor)
committed
test update
1 parent b65b1d2 commit 27ba8ac

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

rapidxml/rapidxml.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ def __iter__(self):
9494
self.cdata_key,
9595
self.always_aslist)
9696

97-
def unparse(self, pretty=False, raw=False, parse_cdata=False):
98-
if parse_cdata:
99-
current_xml = input_xml.first_node()
100-
value = current_xml.value + current_xml.unparse(pretty=False, raw=False, parse_cdata=True)
101-
return value
102-
else:
103-
DictNode.unparse(pretty, raw)
104-
105-
10697
class RapidXml(DictNode, rapidxml.c_ext.Document):
10798
def __init__(self,
10899
text="",

tests/test_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,4 @@ def test_assign_cdata(init_rapidxml_with_CDADA):
115115
test = root.first_node("test")
116116
test.value = "some new text"
117117
assert test.value == "some new text"
118-
print(str(init_rapidxml_with_CDADA.unparse(parse_cdata=True)))
119118

0 commit comments

Comments
 (0)