LOG.debug(_("Reading config from {!r} ...").format(f))
config = {}
with open(f, 'rb') as fh:
- config = yaml.load(fh.read())
+ config = yaml.load(fh.read(), Loader=yaml.FullLoader)
if self.verbose > 2:
LOG.debug(_("Read config:\n{}").format(pp(config)))
if config and isinstance(config, dict):
LOG.debug("Reading {!r} ...".format(str(self.cachefile)))
try:
with open(str(self.cachefile), 'r', **self.open_args) as fh:
- for struct in yaml.load(fh):
+ for struct in yaml.load(fh, Loader=yaml.FullLoader):
module_info = ModuleInfo.init_from_data(
struct, appname=self.appname, verbose=self.verbose,
base_dir=self.base_dir)