mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Fix PyYAML yaml.load(input) Deprecation
This commit is contained in:
parent
9abfc45adc
commit
be12a89372
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue