summaryrefslogtreecommitdiffstats
path: root/rtemsspec/content.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-11-21 11:13:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-11-21 11:15:24 +0100
commitf32b510da81a7dd0036a2b30a89393bae9b654b1 (patch)
tree7fafd72e6a8e53483676233a246520a514bd398e /rtemsspec/content.py
parentitems: Add Link order (diff)
downloadrtems-central-f32b510da81a7dd0036a2b30a89393bae9b654b1.tar.bz2
content: Make Content iterable
Diffstat (limited to 'rtemsspec/content.py')
-rw-r--r--rtemsspec/content.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rtemsspec/content.py b/rtemsspec/content.py
index 9651664e..7e596a2e 100644
--- a/rtemsspec/content.py
+++ b/rtemsspec/content.py
@@ -196,6 +196,9 @@ class Content:
self._empty_line_indent = ""
self._pop_indent_gap = pop_indent_gap
+ def __iter__(self):
+ yield from self._lines
+
def __str__(self):
return "\n".join(itertools.chain(self._lines, [""]))