This returns all currently processed data and empties the output buffer.
(self)
| 37 | self.outfile = '' |
| 38 | |
| 39 | def push(self): |
| 40 | """This returns all currently processed data and empties the output buffer.""" |
| 41 | data = self.outfile |
| 42 | self.outfile = '' |
| 43 | return data |
| 44 | |
| 45 | def close(self): |
| 46 | """Returns any unprocessed data (without processing it) and resets the parser. |