mirror of
https://github.com/beetbox/beets.git
synced 2026-02-09 17:01:55 +01:00
allow unicode items in config file
This commit is contained in:
parent
2fb3ec47c9
commit
f7040f922c
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import logging
|
|||
import sqlite3
|
||||
import errno
|
||||
import re
|
||||
import codecs
|
||||
|
||||
from beets import library
|
||||
from beets import plugins
|
||||
|
|
@ -673,7 +674,7 @@ def main(args=None, configfh=None):
|
|||
if configpath:
|
||||
configpath = util.syspath(configpath)
|
||||
if os.path.exists(util.syspath(configpath)):
|
||||
configfh = open(configpath)
|
||||
configfh = codecs.open(configpath, 'r', encoding='utf-8')
|
||||
else:
|
||||
configfh = None
|
||||
if configfh:
|
||||
|
|
|
|||
Loading…
Reference in a new issue