mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
don't convert to system encoding prior to converting to utf8
This commit is contained in:
parent
9c226d5b4f
commit
8750b9bbbb
1 changed files with 0 additions and 3 deletions
|
@ -1772,9 +1772,6 @@ class DeckStorage(object):
|
|||
if path is None:
|
||||
sqlpath = None
|
||||
else:
|
||||
# ensure unicode & abspath
|
||||
if isinstance(path, types.UnicodeType):
|
||||
path = path.encode(sys.getfilesystemencoding())
|
||||
path = os.path.abspath(path)
|
||||
# check if we need to init
|
||||
if os.path.exists(path):
|
||||
|
|
Loading…
Reference in a new issue