diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-12 17:02:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-12 17:02:49 (GMT) |
commit | d5b598b14fd4c50847ce536692ded258ba1720ca (patch) | |
tree | bee74e8bcdd642bf67103529991be9d587c6d1da /plugins/pychrysalide/analysis/db | |
parent | edcd7a2e2919ea880f8aaf649cf7ed8f1eabac1a (diff) |
Registered basic Python objects in the features namespace.
Diffstat (limited to 'plugins/pychrysalide/analysis/db')
-rw-r--r-- | plugins/pychrysalide/analysis/db/certs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/pychrysalide/analysis/db/certs.c b/plugins/pychrysalide/analysis/db/certs.c index 385e277..61b5f58 100644 --- a/plugins/pychrysalide/analysis/db/certs.c +++ b/plugins/pychrysalide/analysis/db/certs.c @@ -312,7 +312,6 @@ bool ensure_python_certs_is_registered(void) { PyTypeObject *type; /* Type Python pour 'certs' */ PyObject *module; /* Module à recompléter */ - int ret; /* Bilan d'un appel */ type = get_python_certs_type(); @@ -325,10 +324,7 @@ bool ensure_python_certs_is_registered(void) module = get_access_to_python_module("pychrysalide.analysis.db"); - Py_INCREF(type); - ret = PyModule_AddObject(module, "certs", (PyObject *)type); - - if (ret != 0) + if (!register_python_module_object(module, type)) return false; } |