#NEWLINE# def is_obsolete( self ) : #NEWLINE# #INDENT# 'returns True is data is obsolete and needs revalidation\n        ' #NEWLINE# if self . cache_updated : #NEWLINE# #INDENT# now = timezone . now ( ) #NEWLINE# delta = ( self - self . cache_updated ) #NEWLINE# if ( delta . seconds < self . cache_validity ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True