Return the next 1k chunk from the raw stream.
(self)
| 100 | return self.iter_chunks(self._DEFAULT_CHUNK_SIZE) |
| 101 | |
| 102 | def __next__(self): |
| 103 | """Return the next 1k chunk from the raw stream.""" |
| 104 | current_chunk = self.read(self._DEFAULT_CHUNK_SIZE) |
| 105 | if current_chunk: |
| 106 | return current_chunk |
| 107 | raise StopIteration() |
| 108 | |
| 109 | next = __next__ |
| 110 |