def dependencies_are_newer(self, files, dependencies):
        """
        For two lists of files, check if any file in the
        second list is newer than any file of the first.
        """
        dependency_mtimes = [
            os.path.getmtime(filename) for filename in dependencies]
        file_mtimes = [os.path.getmtime(filename) for filename in files]
        result = False
        for file_mtime in file_mtimes:
            for dependency_mtime in dependency_mtimes:
                if dependency_mtime > file_mtime:
                    result = True
        return result
def dependencies_are_newer ( self , files , dependencies ) : dependency_mtimes = [ os . path . getmtime ( filename ) for filename in dependencies ] file_mtimes = [ os . path . getmtime ( filename ) for filename in files ] result = False for file_mtime in file_mtimes : for dependency_mtime in dependency_mtimes : if dependency_mtime > file_mtime : result = True return result
For two lists of files, check if any file in the
        second list is newer than any file of the first.