def read(self): if self.filename: with util.open_yaml(self.filename) as fp: self.body = fp.read() return self.body
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 = {}