diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-05-24 00:24:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-05-24 00:26:23 (GMT) |
commit | 9f4abb8a20871c64b33f88ad5538bbbe111c1d4c (patch) | |
tree | 6fede4c409ba09151b79e88ee3ffe1831be6727e /plugins/yaml/python/module.c | |
parent | 62f073f9a5eb039d8bc5b6d304fca484d4198a9f (diff) |
Update the YAML Python bindings code.
Diffstat (limited to 'plugins/yaml/python/module.c')
-rw-r--r-- | plugins/yaml/python/module.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/yaml/python/module.c b/plugins/yaml/python/module.c index 756b068..3d6a4e8 100644 --- a/plugins/yaml/python/module.c +++ b/plugins/yaml/python/module.c @@ -107,18 +107,12 @@ bool add_yaml_module_to_python_module(void) bool populate_yaml_module(void) { bool result; /* Bilan à retourner */ - PyObject *module; /* Module à recompléter */ result = populate_yaml_module_with_parsers(); - if (!result) goto exit; - module = get_access_to_python_module("pychrysalide.plugins.yaml"); - - if (result) result = register_python_yaml_node(module); - if (result) result = register_python_yaml_collection(module); - if (result) result = register_python_yaml_pair(module); - - exit: + if (result) result = ensure_python_yaml_node_is_registered(); + if (result) result = ensure_python_yaml_collection_is_registered(); + if (result) result = ensure_python_yaml_pair_is_registered(); assert(result); |