File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ def _getChildNodes(self):
53
53
54
54
def testSerializer (element ):
55
55
rv = []
56
- finalText = None
57
56
infosetFilter = ihatexml .InfosetFilter (preventDoubleDashComments = True )
58
57
59
58
def serializeElement (element , indent = 0 ):
@@ -128,16 +127,12 @@ def serializeElement(element, indent=0):
128
127
rv .append ("|%s\" %s\" " % (' ' * (indent - 2 ), element .tail ))
129
128
serializeElement (element , 0 )
130
129
131
- if finalText is not None :
132
- rv .append ("|%s\" %s\" " % (' ' * 2 , finalText ))
133
-
134
130
return "\n " .join (rv )
135
131
136
132
137
133
def tostring (element ):
138
134
"""Serialize an element and its child nodes to a string"""
139
135
rv = []
140
- finalText = None
141
136
142
137
def serializeElement (element ):
143
138
if not hasattr (element , "tag" ):
@@ -173,9 +168,6 @@ def serializeElement(element):
173
168
174
169
serializeElement (element )
175
170
176
- if finalText is not None :
177
- rv .append ("%s\" " % (' ' * 2 , finalText ))
178
-
179
171
return "" .join (rv )
180
172
181
173
You can’t perform that action at this time.
0 commit comments