Use unicode in way more cases
This commit is contained in:
1 parent
5755d5a4ee
commit
ba81aa16a2
8 files changed
+35
-30
No files matched your search
@@ -117,8 +117,8 @@ def add_attribute_error(name_context, lookup_context, name):
|
||||
# instead of an error, if that happens.
|
||||
typ = Error
|
||||
if isinstance(lookup_context, AbstractInstanceContext):
|
||||
slot_names = lookup_context.get_function_slot_names('__getattr__') + \
|
||||
lookup_context.get_function_slot_names('__getattribute__')
|
||||
slot_names = lookup_context.get_function_slot_names(u'__getattr__') + \
|
||||
lookup_context.get_function_slot_names(u'__getattribute__')
|
||||
for n in slot_names:
|
||||
# TODO do we even get here?
|
||||
if isinstance(name, CompiledInstanceName) and \
|
||||
|
||||
Reference in new issue
Block a user