Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit 3117fb6d authored by Pierre Augier's avatar Pierre Augier
Browse files

classe -> class

parent e0f4917c4181
......@@ -291,7 +291,7 @@ def analyse_aot(code, pathfile):
consider_annotations=False,
blocks=blocks_for_capturex,
)
code_ext = {"function": {}, "classe": {}}
code_ext = {"function": {}, "class": {}}
code_dependance = capturex.make_code_external()
# TODO implement class for new backends
if boosted_dicts["functions"]["pythran"]:
......@@ -303,7 +303,7 @@ def analyse_aot(code, pathfile):
if boosted_dicts["classes"]["pythran"]:
cls = next(iter(boosted_dicts["classes"]["pythran"]))
code_dependance, code_ext, _, _ = get_exterior_code(
{cls: code_dependance}, pathfile, classes="classe", relative=True
{cls: code_dependance}, pathfile, classes="class", relative=True
)
code_dependance = code_dependance[cls]
debug(code_dependance)
......
......@@ -111,7 +111,7 @@ def analysis_jit(code, pathfile):
codes_dependance_classes,
pathfile,
previous_file_name=None,
classes="classe",
classes="class",
relative=False,
jitted_dicts=jitted_dicts,
)
......
......@@ -326,7 +326,7 @@ def adapt_code_dependance(func: str, codes_dependance: str, jitted_dicts: dict):
return extast.unparse(module), jitted_dicts, special, jitted_functions
code_ext = {"function": {}, "classe": {}}
code_ext = {"function": {}, "class": {}}
def get_exterior_code(
......
......@@ -120,7 +120,7 @@ class Backend:
path_ext_file = path_dir / (file_name + ".py")
write_if_has_to_write(path_ext_file, code, logger.info)
for file_name, code in code_ext["classe"].items():
for file_name, code in code_ext["class"].items():
path_ext_file = (
path_dir.parent / f"__{self.name}__" / (file_name + ".py")
)
......
......@@ -139,7 +139,7 @@ class ModuleJIT:
write_if_has_to_write(path_ext_file, code, logger.info)
# Write exterior code for classes
for file_name, code in self.code_ext["classe"].items():
for file_name, code in self.code_ext["class"].items():
path_ext = (
path_jit.parent
/ "__jit_classes__"
......
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