bugfix
This commit is contained in:
parent
6f2c0ea8c5
commit
ad845c7c5e
@ -1,4 +1,8 @@
|
|||||||
import ujson as json
|
try:
|
||||||
|
import ujson as json
|
||||||
|
except:
|
||||||
|
import json
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
def loadf(fn,coding='utf8'):
|
def loadf(fn,coding='utf8'):
|
||||||
@ -15,4 +19,4 @@ def dumpf(obj,fn,coding='utf8'):
|
|||||||
load = json.load
|
load = json.load
|
||||||
dump = json.dump
|
dump = json.dump
|
||||||
loads = json.loads
|
loads = json.loads
|
||||||
dumps = json.dumps
|
dumps = json.dumps
|
||||||
|
Loading…
Reference in New Issue
Block a user