示例#1
0
 def read(self):
   if self.filename:
     with util.open_yaml(self.filename) as fp:
       self.body = fp.read()
   return self.body
示例#2
0
 def __init__(self, config_file):
   self.filename = config_file
   if config_file:
     self.config = self.load_yaml(util.open_yaml(config_file))
   else:
     self.config = {}