Merge pull request #2163 from jrobeson/fix-edit-plugin-unicode-warning

decode yaml dumped data as utf-8 in edit plugin for PY2
This commit is contained in:
Johnny Robeson 2016-08-09 00:11:47 -04:00 committed by GitHub
commit 5abbd3e590

View file

@ -252,6 +252,8 @@ class EditPlugin(plugins.BeetsPlugin):
encoding='utf-8')
old_str = dump(old_data)
new.write(old_str)
if six.PY2:
old_str = old_str.decode('utf-8')
new.close()
# Loop until we have parseable data and the user confirms.