#NEWLINE# def next( self ) : #NEWLINE# #INDENT# if self . buff : #NEWLINE# #INDENT# ( rv , self . buff ) = ( self . buff , '' ) #NEWLINE# return rv #NEWLINE# #UNINDENT# if ( self . read_amount >= self . length ) : #NEWLINE# #INDENT# raise StopIteration ( ) #NEWLINE# #UNINDENT# rv = self . chunk [ : int ( ( self . length - self . read_amount ) ) ] #NEWLINE# self . read_amount += len ( rv ) #NEWLINE# self . hasher . update ( rv ) #NEWLINE# return rv