diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-05-31 17:07:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-06-14 13:58:42 +0200 |
commit | 11b78037627d3e47a332d56c1747b9762d8a080a (patch) | |
tree | 70b79a348d8215c910ce4c4d506b21c645d8d506 /rtemsspec | |
parent | 87b40374f0da94a025d997e3b03b507b78441047 (diff) |
rtems: Add Item.initialize_links()
Diffstat (limited to 'rtemsspec')
-rw-r--r-- | rtemsspec/items.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/rtemsspec/items.py b/rtemsspec/items.py index e72b8789..c3deb376 100644 --- a/rtemsspec/items.py +++ b/rtemsspec/items.py @@ -778,8 +778,7 @@ class ItemCache(dict): if post_process_load: post_process_load(self) if config.get("initialize-links", True): - self._init_parents() - self._init_children() + self.initialize_links() spec_root = config["spec-type-root-uid"] if spec_root: self._root_type = _gather_spec_refinements(self[spec_root]) @@ -931,11 +930,10 @@ class ItemCache(dict): data2[key] = value self._save_data(file, data2) - def _init_parents(self) -> None: + def initialize_links(self) -> None: + """ Initializes the links to parents and children. """ for item in self.values(): item.init_parents(self) - - def _init_children(self) -> None: for item in sorted(self.values()): item.init_children() |