def read_job_specs(self): if not os.path.isfile(self.jobsfile): return None pod = read_pod(self.jobsfile) return [JobSpec.from_pod(jp) for jp in pod['jobs']]
def read_job_specs(self): job_specs = [] for job in self._db_jobsfile: job_specs.append(JobSpec.from_pod(job)) return job_specs