(x)
return x
Convert to a byte string.

    Convert a Python unicode string to a utf-8-encoded byte string. You must
    call this on strings you pass to libvips.
Convert to a byte string.
Convert to a byte string .
def _to_bytes(x):
    """Convert to a byte string.

    Convert a Python unicode string to a utf-8-encoded byte string. You must
    call this on strings you pass to libvips.

    """
    if isinstance(x, text_type):
        x = x.encode('utf-8')

    return x
def _to_bytes ( x ) : if isinstance ( x , text_type ) : x = x . encode ( 'utf-8' ) return x