Commit 84fb5ac
committed
updater: make UpdateListIter a proper iterator
Python iterators are required to implement an __iter__() that returns
self [1]. CPython doesn't check this consistently, but the requirement
is still there, so the existing code is buggy. Python 3.13 started
checking this in list comprehensions, resulting in exceptions being
thrown. Fix the bug by having __iter__() return self, as required by
the iterator protocol.
[1]: https://docs.python.org/3/glossary.html#term-iterator1 parent a3e4d17 commit 84fb5ac
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
0 commit comments