diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-08-16 19:56:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-08-16 19:56:00 (GMT) |
commit | 49af9c6449eb48d0ab1fb0893ad59b415f41d3cd (patch) | |
tree | befea4317655a456c2a6c02a913143d101055cfd /plugins/pychrysalide/analysis/db | |
parent | 7b3b76a1e6faff521d582902e1230acbe1a906d3 (diff) |
Created some extra features for the GTK API.
Diffstat (limited to 'plugins/pychrysalide/analysis/db')
-rw-r--r-- | plugins/pychrysalide/analysis/db/certs.c | 4 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/db/certs.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/analysis/db/certs.c b/plugins/pychrysalide/analysis/db/certs.c index dc46877..729c9a4 100644 --- a/plugins/pychrysalide/analysis/db/certs.c +++ b/plugins/pychrysalide/analysis/db/certs.c @@ -289,6 +289,8 @@ PyTypeObject *get_python_certs_type(void) .tp_methods = py_certs_methods, .tp_getset = py_certs_getseters, + .tp_new = no_python_constructor_allowed, + }; return &py_certs_type; @@ -317,8 +319,6 @@ bool ensure_python_certs_is_registered(void) if (!PyType_HasFeature(type, Py_TPFLAGS_READY)) { - type->tp_new = PyType_GenericNew; - if (PyType_Ready(type) != 0) return false; diff --git a/plugins/pychrysalide/analysis/db/certs.h b/plugins/pychrysalide/analysis/db/certs.h index 5c1da5d..bafa2ae 100644 --- a/plugins/pychrysalide/analysis/db/certs.h +++ b/plugins/pychrysalide/analysis/db/certs.h @@ -39,4 +39,4 @@ bool ensure_python_certs_is_registered(void); -#endif /* _PLUGINS_PYCHRYSALIDE_ANALYSIS_DB_CERTSS_H */ +#endif /* _PLUGINS_PYCHRYSALIDE_ANALYSIS_DB_CERTS_H */ |