def validate_utf8(alleged_utf8, error = None) :
    "alleged_utf8 must be null-terminated bytes."
    error, my_error = _get_error(error)
    result = dbus.dbus_validate_utf8(alleged_utf8, error._dbobj) != 0
    my_error.raise_if_set()
    return \
        result
def validate_utf8 ( alleged_utf8 , error = None ) : error , my_error = _get_error ( error ) result = dbus . dbus_validate_utf8 ( alleged_utf8 , error . _dbobj ) != 0 my_error . raise_if_set ( ) return result
alleged_utf8 must be null-terminated bytes.