(iterator, encoding, errors='strict', **kwargs)
Decoding iterator.

    Decodes the input strings from the iterator using a IncrementalDecoder.

    errors and kwargs are passed through to the IncrementalDecoder
    constructor.
Decoding iterator.
Decoding iterator .
def iterdecode(iterator, encoding, errors='strict', **kwargs):
    """
    Decoding iterator.

    Decodes the input strings from the iterator using a IncrementalDecoder.

    errors and kwargs are passed through to the IncrementalDecoder
    constructor.
    """
    decoder = getincrementaldecoder(encoding)(errors, **kwargs)
    for input in iterator:
        output = decoder.decode(input)
        if output:
            yield output
    output = decoder.decode("", True)
    if output:
        yield output
def iterdecode ( iterator , encoding , errors = 'strict' , * * kwargs ) : decoder = getincrementaldecoder ( encoding ) ( errors , * * kwargs ) for input in iterator : output = decoder . decode ( input ) if output : yield output output = decoder . decode ( "" , True ) if output : yield output