def decode(data):
    for codec in CODECS:
        try:
            return data.decode(codec)
        except __HOLE__:
            continue
    return data.decode('utf-8', 'ignore')
dataset/ETHPy150Open ecdavis/pants/pants/contrib/irc.py/decode