Moved ujson to required dependencies
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user