def _ChecksumAll(paths): for path in paths: if not os.path.exists(path): yield path, None else: yield (path, misc.ChecksumFile(path))