remove 'imp' warning

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

View file

@ -5,7 +5,7 @@ from typing import List
from collections import OrderedDict from collections import OrderedDict
from os.path import join, basename from os.path import join, basename
from ast import literal_eval from ast import literal_eval
import imp from importlib.machinery import SourceFileLoader
from .i18n import _ from .i18n import _
@ -640,7 +640,7 @@ class ConstraintAnnotator:
if not hasattr(objectspace.space, 'constraints'): if not hasattr(objectspace.space, 'constraints'):
return return
self.objectspace = objectspace self.objectspace = objectspace
eosfunc = imp.load_source('eosfunc', eosfunc_file) eosfunc = SourceFileLoader('eosfunc', eosfunc_file).load_module()
self.functions = dir(eosfunc) self.functions = dir(eosfunc)
self.functions.extend(INTERNAL_FUNCTIONS) self.functions.extend(INTERNAL_FUNCTIONS)
self.valid_enums = {} self.valid_enums = {}

View file

@ -4,7 +4,7 @@ Gestion du mini-langage de template
On travaille sur les fichiers cibles On travaille sur les fichiers cibles
""" """
import imp from importlib.machinery import SourceFileLoader
from shutil import copy from shutil import copy
import logging import logging
from typing import Dict, Any from typing import Dict, Any
@ -252,7 +252,7 @@ class CreoleTemplateEngine:
self.distrib_dir = distrib_dir self.distrib_dir = distrib_dir
eos = {} eos = {}
if eosfunc_file is not None: if eosfunc_file is not None:
eosfunc = imp.load_source('eosfunc', eosfunc_file) eosfunc = SourceFileLoader('eosfunc', eosfunc_file).load_module()
for func in dir(eosfunc): for func in dir(eosfunc):
if not func.startswith('_'): if not func.startswith('_'):
eos[func] = getattr(eosfunc, func) eos[func] = getattr(eosfunc, func)

View file

@ -18,10 +18,10 @@ class TiramisuReflector:
funcs_path, funcs_path,
): ):
self.storage = ElementStorage() self.storage = ElementStorage()
self.storage.text = ["import imp", self.storage.text = ["from importlib.machinery import SourceFileLoader",
f"func = imp.load_source('func', '{funcs_path}')", f"func = SourceFileLoader('func', '{funcs_path}').load_module()",
"for key, value in dict(locals()).items():", "for key, value in dict(locals()).items():",
" if key != ['imp', 'func']:", " if key != ['SourceFileLoader', 'func']:",
" setattr(func, key, value)", " setattr(func, key, value)",
"try:", "try:",
" from tiramisu3 import *", " from tiramisu3 import *",

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

Some files were not shown because too many files have changed in this diff Show more