Commit 884a9cfe authored by Alexander A. Maly's avatar Alexander A. Maly

Dropped encoding option for json.load

To build with Python 3.9
parent d9889aa4
...@@ -1013,7 +1013,7 @@ class Module: ...@@ -1013,7 +1013,7 @@ class Module:
:return: Kumir module object :return: Kumir module object
""" """
f = open(file_name, 'r', encoding="utf-8") f = open(file_name, 'r', encoding="utf-8")
data = json.load(f, encoding="utf-8") data = json.load(f)
f.close() f.close()
absolute_path = os.path.abspath(file_name) absolute_path = os.path.abspath(file_name)
module_dir = os.path.dirname(absolute_path) module_dir = os.path.dirname(absolute_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment