Changeset 9dad293 in rtems-central for rtemsqual/glossary.py


Ignore:
Timestamp:
Apr 28, 2020, 9:29:48 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b3f5b7e
Parents:
99da835
git-author:
Sebastian Huber <sebastian.huber@…> (04/28/20 09:29:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/28/20 08:34:46)
Message:

items: Use generator functions for item links

This enables an easy access to link attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsqual/glossary.py

    r99da835 r9dad293  
    3636
    3737def _gather_glossary_groups(item: Item, glossary_groups: ItemMap) -> None:
    38     for child in item.children:
     38    for child in item.children():
    3939        _gather_glossary_groups(child, glossary_groups)
    4040    if item["type"] == "glossary" and item["glossary-type"] == "group":
     
    4343
    4444def _gather_glossary_terms(item: Item, glossary_terms: ItemMap) -> None:
    45     for child in item.children:
     45    for child in item.children():
    4646        _gather_glossary_terms(child, glossary_terms)
    4747    if item["type"] == "glossary" and item["glossary-type"] == "term":
Note: See TracChangeset for help on using the changeset viewer.