

def __contains__(self, item):
    if isinstance(item, unicode):
        try:
            return hasattr(self.target, self.encode('ascii'))
        except UnicodeError:
            return False
    return hasattr(self.target, item)

dataset/ETHPy150Open jek/flatland/flatland/util/base.py as_mapping.__contains__/VarMisuse@33/37 `item`->`self`