From 8750b9bbbb5687f5e1365a5a296ebbe6bc87b19c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 5 Jan 2009 06:40:08 +0900 Subject: [PATCH] don't convert to system encoding prior to converting to utf8 --- anki/deck.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index c902066a5..2beac2292 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -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):