File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ def _getChildNodes(self):
5353
5454def testSerializer (element ):
5555 rv = []
56- finalText = None
5756 infosetFilter = ihatexml .InfosetFilter (preventDoubleDashComments = True )
5857
5958 def serializeElement (element , indent = 0 ):
@@ -128,16 +127,12 @@ def serializeElement(element, indent=0):
128127 rv .append ("|%s\" %s\" " % (' ' * (indent - 2 ), element .tail ))
129128 serializeElement (element , 0 )
130129
131- if finalText is not None :
132- rv .append ("|%s\" %s\" " % (' ' * 2 , finalText ))
133-
134130 return "\n " .join (rv )
135131
136132
137133def tostring (element ):
138134 """Serialize an element and its child nodes to a string"""
139135 rv = []
140- finalText = None
141136
142137 def serializeElement (element ):
143138 if not hasattr (element , "tag" ):
@@ -173,9 +168,6 @@ def serializeElement(element):
173168
174169 serializeElement (element )
175170
176- if finalText is not None :
177- rv .append ("%s\" " % (' ' * 2 , finalText ))
178-
179171 return "" .join (rv )
180172
181173
You can’t perform that action at this time.
0 commit comments