Feed some data to the parser. Call this as often as you want, with as little or as much text as you want (may include '\n'). (This just saves the text, all the processing is done by goahead().)
(self, data)
| 95 | self.literal = 1 |
| 96 | |
| 97 | def feed(self, data): |
| 98 | """Feed some data to the parser. |
| 99 | |
| 100 | Call this as often as you want, with as little or as much text |
| 101 | as you want (may include '\n'). (This just saves the text, |
| 102 | all the processing is done by goahead().) |
| 103 | """ |
| 104 | |
| 105 | self.rawdata = self.rawdata + data |
| 106 | self.goahead(0) |
| 107 | |
| 108 | def close(self): |
| 109 | """Handle the remaining data.""" |