diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-06 10:39:19 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-06 15:50:16 +0200 |
commit | a370792cbc7285da90ef261d03efe781075ff71b (patch) | |
tree | cd1cd560a4ba8c798ea041ec0a93ab79c71312c6 /source4/lib | |
parent | 4e0fb8b4b1b7eadf315aeb599a079eb1d22a4d22 (diff) | |
download | samba-a370792cbc7285da90ef261d03efe781075ff71b.tar.gz samba-a370792cbc7285da90ef261d03efe781075ff71b.tar.bz2 samba-a370792cbc7285da90ef261d03efe781075ff71b.zip |
s4:libcli/pyerrors: s/PyErr_WERROR_IS_ERR_RAISE/PyErr_WERROR_NOT_OK_RAISE/
metze
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/registry/pyregistry.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source4/lib/registry/pyregistry.c b/source4/lib/registry/pyregistry.c index 2e8b95f6e3..ad411e846d 100644 --- a/source4/lib/registry/pyregistry.c +++ b/source4/lib/registry/pyregistry.c @@ -49,7 +49,7 @@ static PyObject *py_get_predefined_key_by_name(PyObject *self, PyObject *args) return NULL; result = reg_get_predefined_key_by_name(ctx, name, &key); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); return pytalloc_steal(&PyRegistryKey, key); } @@ -64,7 +64,7 @@ static PyObject *py_key_del_abs(PyObject *self, PyObject *args) return NULL; result = reg_key_del_abs(ctx, path); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -80,7 +80,7 @@ static PyObject *py_get_predefined_key(PyObject *self, PyObject *args) return NULL; result = reg_get_predefined_key(ctx, hkey, &key); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); return pytalloc_steal(&PyRegistryKey, key); } @@ -94,7 +94,7 @@ static PyObject *py_diff_apply(PyObject *self, PyObject *args) return NULL; result = reg_diff_apply(ctx, filename); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -127,7 +127,7 @@ static PyObject *py_mount_hive(PyObject *self, PyObject *args) SMB_ASSERT(ctx != NULL); result = reg_mount_hive(ctx, PyHiveKey_AsHiveKey(py_hivekey), hkey, elements); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -137,7 +137,7 @@ static PyObject *registry_new(PyTypeObject *type, PyObject *args, PyObject *kwar WERROR result; struct registry_context *ctx; result = reg_open_local(NULL, &ctx); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); return pytalloc_steal(&PyRegistry, ctx); } @@ -175,7 +175,7 @@ static PyObject *py_hive_key_del(PyObject *self, PyObject *args) result = hive_key_del(NULL, key, name); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -186,7 +186,7 @@ static PyObject *py_hive_key_flush(PyObject *self) struct hive_key *key = PyHiveKey_AsHiveKey(self); result = hive_key_flush(key); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -202,7 +202,7 @@ static PyObject *py_hive_key_del_value(PyObject *self, PyObject *args) result = hive_key_del_value(NULL, key, name); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -226,7 +226,7 @@ static PyObject *py_hive_key_set_value(PyObject *self, PyObject *args) else result = hive_key_del_value(NULL, key, name); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); Py_RETURN_NONE; } @@ -291,7 +291,7 @@ static PyObject *py_open_hive(PyTypeObject *type, PyObject *args, PyObject *kwar tevent_context_init(NULL), lp_ctx, &hive_key); talloc_free(mem_ctx); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); return pytalloc_steal(&PyHiveKey, hive_key); } @@ -403,7 +403,7 @@ static PyObject *py_open_ldb_file(PyObject *self, PyObject *args, PyObject *kwar result = reg_open_ldb_file(NULL, location, session_info, credentials, s4_event_context_init(NULL), lp_ctx, &key); talloc_free(mem_ctx); - PyErr_WERROR_IS_ERR_RAISE(result); + PyErr_WERROR_NOT_OK_RAISE(result); return pytalloc_steal(&PyHiveKey, key); } |