Thanks to visit codestin.com Credit goes to github.com
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 96643a2 commit 76bf242Copy full SHA for 76bf242
html5lib/tests/test_parser2.py
@@ -1,6 +1,6 @@
1
from __future__ import absolute_import, division, unicode_literals
2
3
-from six import PY2
+from six import PY2, text_type
4
5
import io
6
@@ -84,7 +84,7 @@ def test_debug_log():
84
85
if PY2:
86
for i, log in enumerate(expected):
87
- log = [x.encode("ascii") if isinstance(x, unicode) else x for x in log]
+ log = [x.encode("ascii") if isinstance(x, text_type) else x for x in log]
88
expected[i] = tuple(log)
89
90
assert parser.log == expected
0 commit comments