Diff of /pyke/krb_compiler/kqb_parser.py [2aac52] .. [2922d1]  Maximize  Restore

  Switch to unified view

a/pyke/krb_compiler/kqb_parser.py b/pyke/krb_compiler/kqb_parser.py
...
...
531
            yield question_base.question(name, tuple(params), answer_param,
531
            yield question_base.question(name, tuple(params), answer_param,
532
                                         user_q)
532
                                         user_q)
533
            if self.column >= len(self.line): self.readline()
533
            if self.column >= len(self.line): self.readline()
534
534
535
def parse_kqb(filename):
535
def parse_kqb(filename):
536
    dirs, base = os.path.split(filename)
536
    name = os.path.basename(filename)[:-4]
537
    name = base[:-4]
538
    with open(filename, 'rU') as f:
537
    with open(filename, 'rU') as f:
539
        base = question_base.question_base(name)
538
        base = question_base.question_base(name)
540
        parser = kqb_parser(f)
539
        parser = kqb_parser(f)
541
        for question in parser.parse_questions():
540
        for question in parser.parse_questions():
542
            base.add_question(question)
541
            base.add_question(question)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks