def __getitem__(self, key):
        if isinstance(key, basestring):
            for subcontext in self:
                if key in subcontext:
                    return subcontext[key]
            raise KeyError(key)
        else:
            return super(ContextList, self).__getitem__(key)
dataset/ETHPy150Open adieu/django-nonrel/django/test/utils.py/ContextList.__getitem__/original