#NEWLINE# def _next_chunk( self ) : #NEWLINE# #INDENT# 'Read the next chunk into the read buffer.' #NEWLINE# if self . _is_gzip : #NEWLINE# #INDENT# chunk = self . zip . read ( self . chunksize ) #NEWLINE# if ( not chunk ) : #NEWLINE# #INDENT# self . eof = True #NEWLINE# raise EOFError #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . readbuf += chunk #NEWLINE# #UNINDENT# return #NEWLINE# #UNINDENT# self . chunkidx += 1 #NEWLINE# if ( self . chunkidx >= len ( self . chunks ) ) : #NEWLINE# #INDENT# self . eof = True #NEWLINE# raise EOFError #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . readbuf += self . zip . read ( self . chunks [ self . chunkidx ] . name )