#NEWLINE# def should_update_key( key , path ) : #NEWLINE# #INDENT# '\n    Given a key and its associated file, determine whether it should be\n    updated.\n    ' #NEWLINE# if ( not key . last_modified ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# key_time = time . strptime ( path . last_modified , '%a, %d %b %Y %H:%M:%S %Z' ) #NEWLINE# local_time = time . gmtime ( os . path . getmtime ( path ) ) #NEWLINE# return ( key_time == local_time )