Skip to content

Commit dd73a7f

Browse files
author
Thomas Preud'homme
committed
[LNT] Remove useless import fallback
Summary: json module is available since Python 2.6. Since LNT now requires Python 2.7 or later, the fallback for importing simplejson in case json is not available is useless. Removing it also removes one of the warning from mypy. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls, leandron, PrzemekWirkus Reviewed By: cmatthews Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D69054
1 parent e272992 commit dd73a7f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lnt/testing/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@
77
"""
88

99
import datetime
10+
import json
1011
import re
1112
from lnt.util import logger
1213

13-
try:
14-
import json
15-
except ImportError:
16-
import simplejson as json
17-
1814
# We define the following constants for use as sample values by
1915
# convention.
2016
PASS = 0

0 commit comments

Comments
 (0)