Reset the input buffer and associated state.
(self)
| 335 | self.encoding = get_input_encoding() |
| 336 | |
| 337 | def reset(self): |
| 338 | """Reset the input buffer and associated state.""" |
| 339 | self._buffer[:] = [] |
| 340 | self.source = '' |
| 341 | self.code = None |
| 342 | self._is_complete = False |
| 343 | self._is_invalid = False |
| 344 | |
| 345 | def source_reset(self): |
| 346 | """Return the input source and perform a full reset. |
no outgoing calls
no test coverage detected