From ad845c7c5e59ea6b1966a5d2090c7f1c62d84cac Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 21 Jun 2022 19:05:14 +0800 Subject: [PATCH] bugfix --- appPublic/myjson.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/appPublic/myjson.py b/appPublic/myjson.py index ed6f638..95f30d4 100644 --- a/appPublic/myjson.py +++ b/appPublic/myjson.py @@ -1,4 +1,8 @@ -import ujson as json +try: + import ujson as json +except: + import json + import codecs def loadf(fn,coding='utf8'): @@ -15,4 +19,4 @@ def dumpf(obj,fn,coding='utf8'): load = json.load dump = json.dump loads = json.loads -dumps = json.dumps \ No newline at end of file +dumps = json.dumps