Skip to content

Commit b7c3c48

Browse files
committed
Remove simplejson fallbacks in tests: we don't support Python < 2.6
1 parent 96da7f5 commit b7c3c48

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

html5lib/tests/test_serializer.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
from __future__ import absolute_import, division, unicode_literals
22

3+
import json
34
import unittest
4-
from .support import get_data_files
55

6-
try:
7-
import json
8-
except ImportError:
9-
import simplejson as json
6+
from .support import get_data_files
107

118
try:
129
unittest.TestCase.assertEqual

html5lib/tests/test_tokenizer.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
from __future__ import absolute_import, division, unicode_literals
22

3-
3+
import json
44
import warnings
55
import re
66

7-
try:
8-
import json
9-
except ImportError:
10-
import simplejson as json
11-
127
from .support import get_data_files
8+
139
from html5lib.tokenizer import HTMLTokenizer
1410
from html5lib import constants
1511

0 commit comments

Comments
 (0)