(thing)
return False
Check that **thing** is bytes.

    :param thing: The thing to check if it's bytes.
    :rtype: bool
    :returns: ``True`` if **thing** is bytes or a bytearray.
Check that **thing** is bytes.
Check that ** thing ** is bytes .
def _is_bytes(thing):
    """Check that **thing** is bytes.

    :param thing: The thing to check if it's bytes.
    :rtype: bool
    :returns: ``True`` if **thing** is bytes or a bytearray.
    """
    if isinstance(thing, (bytes, bytearray)):
        return True
    return False
def _is_bytes ( thing ) : if isinstance ( thing , ( bytes , bytearray ) ) : return True return False