#NEWLINE# def _generate_diff_ids( self ) : #NEWLINE# #INDENT# diff_ids = [ ] #NEWLINE# for path in self . layer_paths_to_move : #NEWLINE# #INDENT# with open ( os . path . join ( self . old_image_dir , path , 'layer.tar' ) , 'rb' ) as f : #NEWLINE# #INDENT# diff_ids . append ( hashlib . sha256 ( f . read ( ) ) . hexdigest ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . layer_paths_to_squash : #NEWLINE# #INDENT# with open ( os . path . join ( self . squashed_dir , 'layer.tar' ) , 'rb' ) as f : #NEWLINE# #INDENT# diff_ids . append ( hashlib . sha256 ( f . read ( ) ) . hexdigest ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return diff_ids