Move some of the compiled.create calls to compiled.builtin_from_name

This commit is contained in:
Dave Halter
2017-12-01 09:54:29 +01:00
parent 543f4f7ff2
commit 2aa2005502
7 changed files with 24 additions and 14 deletions

View File

@@ -25,7 +25,8 @@ class _ModuleAttributeName(AbstractNameDefinition):
self.string_name = string_name
def infer(self):
return compiled.create(self.parent_context.evaluator, str).execute_evaluated()
ctx = compiled.builtin_from_name(self.parent_context.evaluator, 'str')
return ctx.execute_evaluated()
class ModuleName(ContextNameMixin, AbstractNameDefinition):