Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

            @staticmethod
    def from_file(course_file):
        course = yaml.load(course_file)
        if type(course) != Course:
            raise ChisubmitModelException("Course file does not contain a Course object.")
        return course
        


src/c/h/chisubmit-0.1.1/src/chisubmit/cli/course.py   chisubmit(Download)
    else:
        f = open(args.filename)
        new_course = Course.from_file(f)
        f.close()