def finish(self, data='<STR_LIT>'):
self.pending += data<EOL>self.streaming = False<EOL>for i in self:<EOL><INDENT>yield i<EOL><DEDENT>
Optionally add pending data, turn off streaming mode, and yield
result chunks, which implies all pending data will be consumed.

:yields: result chunks
:ytype: str