#NEWLINE# def needs_rebuild( self ) : #NEWLINE# #INDENT# for ratio in self . sprite . config [ 'ratios' ] : #NEWLINE# #INDENT# cocos2d_path = self . output_path ( ratio ) #NEWLINE# if os . path . exists ( cocos2d_path ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# data = plistlib . readPlist ( cocos2d_path ) #NEWLINE# assert ( data [ ratio . meta_key ] [ 'hash' ] == self . sprite . hash ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# return True #NEWLINE# #UNINDENT# return False