Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the TokenTable iterator implementation
The __iter__ function must perform initialization and return the iterator object itself. The __next__ function must return the next item or raise StopIteration when no more elements are available. This fixes the StopIteration exception being uncaught by the for loop when the iterator reaches the end of the collection. This could be encountered when calling smbios-token-ctl --dump-tokens.
- Loading branch information