Close the stream.
(self)
| 362 | return rv |
| 363 | |
| 364 | def close(self): |
| 365 | """Close the stream.""" |
| 366 | self.current = Token(self.current.lineno, TOKEN_EOF, '') |
| 367 | self._iter = None |
| 368 | self.closed = True |
| 369 | |
| 370 | def expect(self, expr): |
| 371 | """Expect a given token type and return it. This accepts the same |