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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy