#NEWLINE# def get_or_set( self , image_file ) : #NEWLINE# #INDENT# cached = self . get ( image_file ) #NEWLINE# if ( cached is not None ) : #NEWLINE# #INDENT# return cached #NEWLINE# #UNINDENT# self . set ( image_file ) #NEWLINE# return cached