MCPcopy Create free account
hub / github.com/ActiveState/code / push

Method push

recipes/Python/286269_HTML_Scraper/recipe-286269.py:39–43  ·  view source on GitHub ↗

This returns all currently processed data and empties the output buffer.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected