#NEWLINE# def checked_recently( ) : #NEWLINE# #INDENT# ' Return whether we have checked dependencies in the last day. ' #NEWLINE# if ( not os . path . exists ( timestamp_path ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# current_date = date . today ( ) #NEWLINE# with open ( timestamp_path ) as timestamp_file : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# last_check_date = date . fromordinal ( int ( timestamp_file . read ( ) ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( current_date == current_date )