Fix PyYAML yaml.load(input) Deprecation

This commit is contained in:
Alexei Datskevich 2019-03-30 08:34:13 +01:00
parent 9abfc45adc
commit be12a89372

View file

@ -152,7 +152,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
self._log.debug('Loading canonicalization tree {0}', c14n_filename)
c14n_filename = normpath(c14n_filename)
with codecs.open(c14n_filename, 'r', encoding='utf-8') as f:
genres_tree = yaml.load(f)
genres_tree = yaml.safe_load(f)
flatten_tree(genres_tree, [], self.c14n_branches)
@property