#NEWLINE# def ValidateAndLog( self , log ) : #NEWLINE# #INDENT# 'Validates an assignment line and logs any errors and warnings.\n\n    Args:\n      log: A LogCounter instance to record issues.\n    ' #NEWLINE# if ( not self . variable . strip ( string . whitespace ) ) : #NEWLINE# #INDENT# log . LineError ( self . MSG_QUOTE_VALUES , 'Variable assignments in crontabs must contain non-whitespace characters (try quotes).' ) #NEWLINE# #UNINDENT# if ( '$' in self . variable ) : #NEWLINE# #INDENT# log . LineWarn ( log . MSG_SHELL_VAR , 'Variable assignments in crontabs are not like shell.  $VAR is not expanded.' )