def decode(bytes_sequence, encodings):
    """Return the first successfully decoded string"""
    for encoding in encodings:
        try:
            decoded = bytes_sequence.decode(encoding)
            return decoded
        except __HOLE__:
            # Try the next in the list.
            pass
    raise DecodeError
dataset/ETHPy150Open pjdietz/rester-sublime-http-client/rester/http.py/decode