#NEWLINE# def iter_errback( iterable , errback , * a , **kw ) : #NEWLINE# #INDENT# 'Wraps an iterable calling an errback if an error is caught while\n    iterating it.\n    ' #NEWLINE# it = iter ( iterable ) #NEWLINE# while 1 : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( yield next ( it ) ) #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# errback ( failure . Failure ( ) , * a , ** kw )