mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fixes removed module in Python 3.12 (#984)
This commit is contained in:
parent
69ce9beb9c
commit
991e43f07f
@ -17,7 +17,7 @@ The schema for grist data is:
|
||||
"""
|
||||
import logging
|
||||
import re
|
||||
import imp
|
||||
import types
|
||||
from collections import OrderedDict
|
||||
|
||||
import six
|
||||
@ -207,7 +207,7 @@ def _is_special_table(table_id):
|
||||
|
||||
|
||||
def exec_module_text(module_text):
|
||||
mod = imp.new_module(codebuilder.code_filename)
|
||||
mod = types.ModuleType(codebuilder.code_filename)
|
||||
codebuilder.save_to_linecache(module_text)
|
||||
code_obj = compile(module_text, codebuilder.code_filename, "exec")
|
||||
# pylint: disable=exec-used
|
||||
|
Loading…
Reference in New Issue
Block a user