def _file_reader(fh):
 while True:
  chunk = fh.read(DOWNLOAD_CHUNK_SIZE)
  if (chunk == ''):
   fh.close()
   break
  (yield chunk)

def _file_reader ( fh ) : while True : chunk = fh . read ( DOWNLOAD_CHUNK_SIZE ) if ( chunk == '' ) : fh . close ( ) break ( yield chunk )
generator that reads a file .