Use create_simple_object for a lot of use cases

This commit is contained in:
Dave Halter
2017-12-02 01:59:48 +01:00
parent 2aa2005502
commit 3c78aad8b1
6 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ class NameFinder(object):
def _check_getattr(self, inst):
"""Checks for both __getattr__ and __getattribute__ methods"""
# str is important, because it shouldn't be `Name`!
name = compiled.create(self._evaluator, self._string_name)
name = compiled.create_simple_object(self._evaluator, self._string_name)
# This is a little bit special. `__getattribute__` is in Python
# executed before `__getattr__`. But: I know no use case, where