Fix PyYAML yaml.load(input) Deprecation
@@ -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
