Moved ujson to required dependencies

This commit is contained in:
2023-03-12 14:54:06 +01:00
parent 244173e556
commit 0073120bf2
5 changed files with 15 additions and 29 deletions

View File

@@ -1,13 +1,9 @@
try:
from ujson import loads
except ModuleNotFoundError:
from json import loads
from os import stat, makedirs, path, getcwd
from datetime import datetime
from gzip import open as gzipopen
from os import getcwd, makedirs, path, stat
from shutil import copyfileobj
from datetime import datetime
from ujson import loads
with open(getcwd() + path.sep + "config.json", "r", encoding="utf8") as file:
json_contents = loads(file.read())