Move execute_evaluated to a helper function

This commit is contained in:
Dave Halter committed 2018-08-05 01:28:03 +02:00
1 parent faba29a42b
commit 7a48fdc5f6
10 files changed
+30 -22

No files matched your search

+1 -1
View File
@@ -393,7 +393,7 @@ def _literals_to_types(evaluator, result):
# Literals are only valid as long as the operations are
# correct. Otherwise add a value-free instance.
cls = compiled.builtin_from_name(evaluator, typ.name.string_name)
new_result |= cls.execute_evaluated()
new_result |= helpers.execute_evaluated(cls)
else:
new_result |= ContextSet(typ)
return new_result