(self)
| 147 | return self |
| 148 | |
| 149 | def __next__(self) -> bytes: |
| 150 | if self.closed: |
| 151 | warn("Iterated over closed 'app_iter'.", WSGIWarning, stacklevel=2) |
| 152 | |
| 153 | rv = self._next() |
| 154 | |
| 155 | if not self.headers_set: |
| 156 | warn( |
| 157 | "The application returned before it started the response.", |
| 158 | WSGIWarning, |
| 159 | stacklevel=2, |
| 160 | ) |
| 161 | |
| 162 | check_type("application iterator items", rv, bytes) |
| 163 | self.chunks.append(len(rv)) |
| 164 | return rv |
| 165 | |
| 166 | def close(self) -> None: |
| 167 | self.closed = True |
nothing calls this directly
no test coverage detected