#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# 'Same as ``File.__iter__()`` but using ``force_bytes()``.\n\n        See https://code.djangoproject.com/ticket/21321\n\n        ' #NEWLINE# buffer_ = None #NEWLINE# for chunk in self . chunks ( ) : #NEWLINE# #INDENT# chunk_buffer = BytesIO ( force_bytes ( chunk ) ) #NEWLINE# for line in chunk_buffer : #NEWLINE# #INDENT# if buffer_ : #NEWLINE# #INDENT# line = ( buffer_ + line ) #NEWLINE# buffer_ = None #NEWLINE# #UNINDENT# if ( line [ ( - 1 ) ] in ( '\n' , '\r' ) ) : #NEWLINE# #INDENT# ( yield line ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# buffer_ = line #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( buffer_ is not None ) : #NEWLINE# #INDENT# ( yield chunk_buffer )