|
@@ -480,12 +480,12 @@ class ModelverseJit(object):
|
|
|
# The comment below makes pylint shut up about our (hopefully benign) use of exec here.
|
|
|
# pylint: disable=I0011,W0122
|
|
|
|
|
|
- # Convert the function definition to Python code, and compile it.
|
|
|
- exec(str(function_def), self.jit_globals)
|
|
|
-
|
|
|
if self.jit_code_log_function is not None:
|
|
|
self.jit_code_log_function(function_def)
|
|
|
|
|
|
+ # Convert the function definition to Python code, and compile it.
|
|
|
+ exec(str(function_def), self.jit_globals)
|
|
|
+
|
|
|
# Extract the compiled function from the JIT global state.
|
|
|
return self.jit_globals[function_name]
|
|
|
|