def bytes_to_repr(obj):
        "Convert bytes object into suitable representation."
        if not isinstance(obj, bytes):
            raise TypeError('Object must be a bytes instance!')
        return repr(obj)[2:-1]
Convert bytes object into suitable representation.
recipes/Python/578076_Markov/recipe-578076.py