We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a761a7a commit 5e96373Copy full SHA for 5e96373
1 file changed
tests/test_tokenizer.py
@@ -5,7 +5,16 @@
5
import unittest
6
import new
7
8
-import simplejson
+try:
9
+ import simplejson
10
+except:
11
+ import re
12
+ class simplejson:
13
+ def load(f):
14
+ true, false = True, False
15
+ input=re.sub(r'(".*?(?<!\\)")',r'u\1',f.read().decode('utf-8'))
16
+ return eval(input)
17
+ load = staticmethod(load)
18
19
#Allow us to import the parent module
20
os.chdir(os.path.split(os.path.abspath(__file__))[0])
0 commit comments