#NEWLINE# def _squashed_layer( self ) : #NEWLINE# #INDENT# self . tar . seek ( 0 ) #NEWLINE# with tarfile . open ( fileobj = self . tar , mode = 'r' ) as tar : #NEWLINE# #INDENT# self . squashed_layer_path = ImageHelper . top_layer_path ( tar ) #NEWLINE# #UNINDENT# return self . _extract_file ( ( '%s/layer.tar' % self . squashed_layer_path ) , self . tar )