def _check_guts_toc_mtime(attr, old, toc, last_build, pyc=0):
 for (nm, fnm, typ) in old:
  if (misc.mtime(fnm) > last_build):
   logger.info('Building because %s changed', fnm)
   return True
  elif (pyc and (misc.mtime(fnm[:(-1)]) > last_build)):
   logger.info('Building because %s changed', fnm[:(-1)])
   return True
 return False

def _check_guts_toc_mtime ( attr , old , toc , last_build , pyc = 0 ) : for ( nm , fnm , typ ) in old : if ( misc . mtime ( fnm ) > last_build ) : logger . info ( 'Building because %s changed' , fnm ) return True elif ( pyc and ( misc . mtime ( fnm [ : ( - 1 ) ] ) > last_build ) ) : logger . info ( 'Building because %s changed' , fnm [ : ( - 1 ) ] ) return True return False
rebuild is required if mtimes of files listed in old toc are newer than last_build if pyc=1 .