Skip to content
Snippets Groups Projects
Commit 708e5d45 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Minor PEP8 fix

parent 7909696e
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,9 @@ class PythonFunctionGenerator(PythonCodeGenerator): ...@@ -86,7 +86,9 @@ class PythonFunctionGenerator(PythonCodeGenerator):
def get_function(self): def get_function(self):
result_dict = {} result_dict = {}
source_text = self.get() source_text = self.get()
exec(compile(source_text.rstrip()+"\n", "<generated function %s>" % self.name, "exec"), exec(compile(
source_text.rstrip()+"\n", "<generated function %s>"
% self.name, "exec"),
result_dict) result_dict)
func = result_dict[self.name] func = result_dict[self.name]
result_dict["_MODULE_SOURCE_CODE"] = source_text result_dict["_MODULE_SOURCE_CODE"] = source_text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment