diff --git a/foamlib/_dictionaries.py b/foamlib/_dictionaries.py index a8374b4..815c3f4 100644 --- a/foamlib/_dictionaries.py +++ b/foamlib/_dictionaries.py @@ -286,9 +286,7 @@ def __delitem__(self, key: str) -> None: self._cmd(["-remove"], key=key) def __iter__(self) -> Iterator[str]: - for key in self._cmd(["-keywords"]).splitlines(): - if not key.startswith('"'): - yield key + yield from self._cmd(["-keywords"]).splitlines() def __len__(self) -> int: return len(list(iter(self)))