We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a6375 commit b5c082aCopy full SHA for b5c082a
html5lib/treewalkers/etree.py
@@ -10,7 +10,7 @@
10
11
import re
12
13
-from six import text_type
+from six import string_types
14
15
from . import _base
16
from ..utils import moduleFactoryFactory
@@ -58,7 +58,7 @@ def getNodeDetails(self, node):
58
return _base.COMMENT, node.text
59
60
else:
61
- assert type(node.tag) == text_type, type(node.tag)
+ assert isinstance(node.tag, string_types), type(node.tag)
62
# This is assumed to be an ordinary element
63
match = tag_regexp.match(node.tag)
64
if match:
0 commit comments