Skip to content

Commit 6e12194

Browse files
committed
Fix etree test failures
1 parent f50cb08 commit 6e12194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/treebuilders/etree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def serializeElement(element, indent=0):
218218
rv.append("|%s\"%s\""%(' '*(indent+2), element.text))
219219
if element.tail:
220220
finalText = element.tail
221-
elif type(element.tag) == type(ElementTree.Comment):
221+
elif element.tag == ElementTree.Comment:
222222
rv.append("|%s<!-- %s -->"%(' '*indent, element.text))
223223
else:
224224
assert type(element.tag) in types.StringTypes, "Expected unicode, got %s"%type(element.tag)

0 commit comments

Comments
 (0)