Gettattr needs unicode

This commit is contained in:
Dave Halter
2018-08-13 09:53:26 +02:00
parent 73682b95f5
commit 11b2ac9923

View File

@@ -153,7 +153,7 @@ class CompiledObject(Context):
"""
return CompiledObjectFilter(self.evaluator, self, is_instance)
@CheckAttribute('__getitem__')
@CheckAttribute(u'__getitem__')
def py__simple_getitem__(self, index):
with reraise_as_evaluator(IndexError, KeyError, TypeError):
access = self.access_handle.py__simple_getitem__(index)