equal
deleted
inserted
replaced
551 def _walk_trie(block): |
551 def _walk_trie(block): |
552 """yield all the block in a trie |
552 """yield all the block in a trie |
553 |
553 |
554 Children blocks are always yield before their parent block. |
554 Children blocks are always yield before their parent block. |
555 """ |
555 """ |
556 for __, item in sorted(block.items()): |
556 for (__, item) in sorted(block.items()): |
557 if isinstance(item, dict): |
557 if isinstance(item, dict): |
558 for sub_block in _walk_trie(item): |
558 for sub_block in _walk_trie(item): |
559 yield sub_block |
559 yield sub_block |
560 yield block |
560 yield block |
561 |
561 |