remove 'imp' warning

This commit is contained in:
2020-12-22 17:22:56 +01:00
parent d18906e011
commit 7d42517430
171 changed files with 511 additions and 511 deletions

View File

@ -1,7 +1,7 @@
import imp
func = imp.load_source('func', 'tests/dictionaries/../eosfunc/test.py')
from importlib.machinery import SourceFileLoader
func = SourceFileLoader('func', 'tests/dictionaries/../eosfunc/test.py').load_module()
for key, value in dict(locals()).items():
if key != ['imp', 'func']:
if key != ['SourceFileLoader', 'func']:
setattr(func, key, value)
try:
from tiramisu3 import *