Skip to content

Commit cd2aeb3

Browse files
author
Jon Nappi
committed
Removed redundant json/simplejson checks in compat.py
1 parent 8a54427 commit cd2aeb3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

dyn/compat.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""python 2-3 compatability layer. The bulk of this was borrowed from
33
kennethreitz's requests module
44
"""
5-
65
import sys
76

87
# -------
@@ -18,18 +17,6 @@
1817
#: Python 3.x?
1918
is_py3 = (_ver[0] == 3)
2019

21-
# ---------
22-
# JSON
23-
# ---------
24-
try:
25-
import json
26-
except ImportError:
27-
try:
28-
import simplejson as json
29-
except ImportError:
30-
sys.exit('Could not find json or simplejson libraries.')
31-
32-
3320
# -----------------
3421
# Version Specifics
3522
# -----------------

0 commit comments

Comments
 (0)