Use unicode in way more cases

This commit is contained in:
Dave Halter committed 2017-12-28 23:19:17 +01:00
1 parent 5755d5a4ee
commit ba81aa16a2
8 files changed
+35 -30

No files matched your search

+2 -2
View File
@@ -149,8 +149,8 @@ class NameFinder(object):
# We are inversing this, because a hand-crafted `__getattribute__`
# could still call another hand-crafted `__getattr__`, but not the
# other way around.
names = (inst.get_function_slot_names('__getattr__') or
inst.get_function_slot_names('__getattribute__'))
names = (inst.get_function_slot_names(u'__getattr__') or
inst.get_function_slot_names(u'__getattribute__'))
return inst.execute_function_slots(names, name)
def _names_to_types(self, names, attribute_lookup):