#NEWLINE# def _make_bzip2_file( self , filename = 'test0.fits.bz2' ) : #NEWLINE# #INDENT# bzfile = self . temp ( bz ) #NEWLINE# with open ( self . data ( 'test0.fits' ) , 'rb' ) as f : #NEWLINE# #INDENT# bz = bz2 . BZ2File ( bzfile , 'w' ) #NEWLINE# bz . write ( f . read ( ) ) #NEWLINE# bz . close ( ) #NEWLINE# #UNINDENT# return bzfile