def iterdecode(iterator, encoding, errors='<STR_LIT:strict>', **kwargs):
decoder = getincrementaldecoder(encoding)(errors, **kwargs)<EOL>for input in iterator:<EOL><INDENT>output = decoder.decode(input)<EOL>if output:<EOL><INDENT>yield output<EOL><DEDENT><DEDENT>output = decoder.decode("<STR_LIT>", True)<EOL>if output:<EOL><INDENT>yield output<EOL><DEDENT>
Decoding iterator.

Decodes the input strings from the iterator using an IncrementalDecoder.

errors and kwargs are passed through to the IncrementalDecoder
constructor.