(data)
return all(c not in _BINARYCHARS for c in data)
Returns ``True`` if the given ``data`` argument (a ``bytes`` object)
    does not contain unprintable control characters.
Returns ``True`` if the given ``data`` argument (a ``bytes`` object)
    does not contain unprintable control characters.
Returns True if the given data argument ( a bytes object ) does not contain unprintable control characters .
def binary_is_text(data):
    """ Returns ``True`` if the given ``data`` argument (a ``bytes`` object)
    does not contain unprintable control characters.
    """
    if not isinstance(data, bytes):
        raise TypeError(f"data must be bytes, got '{type(data).__name__}'")
    return all(c not in _BINARYCHARS for c in data)
def binary_is_text ( data ) : if not isinstance ( data , bytes ) : raise TypeError ( f"data must be bytes, got '{type(data).__name__}'" ) return all ( c not in _BINARYCHARS for c in data )