示例#1
0
文件: spec.py 项目: pepribas/F3AT
def load_rules(specfile):
  rules = []
  find_rules(xmlutil.parse(specfile), rules)
  return rules
示例#2
0
文件: spec.py 项目: pepribas/F3AT
def load(specfile):
  doc = xmlutil.parse(specfile)
  return loadFromDoc(doc, specfilename=specfile)