Return an iterator that will yield each chunk as a (*chunktype*, *content*) pair.
(self)
| 1403 | return type, data |
| 1404 | |
| 1405 | def chunks(self): |
| 1406 | """Return an iterator that will yield each chunk as a |
| 1407 | (*chunktype*, *content*) pair. |
| 1408 | """ |
| 1409 | |
| 1410 | while True: |
| 1411 | t, v = self.chunk() |
| 1412 | yield t, v |
| 1413 | if t == b"IEND": |
| 1414 | break |
| 1415 | |
| 1416 | def undo_filter(self, filter_type, scanline, previous): |
| 1417 | """ |