From 9ae2ccfb5d9f43e0b49b0cea8fc3562e2b137c67 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 23 Aug 2016 09:23:26 -0700 Subject: [PATCH] I hate Python 2.7 --- yomi_base/constants.py | 2 +- yomi_base/japanese/__init__.py | 4 ++-- yomi_base/preference_data.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/yomi_base/constants.py b/yomi_base/constants.py index 6019fc8..ad61304 100644 --- a/yomi_base/constants.py +++ b/yomi_base/constants.py @@ -17,6 +17,6 @@ c = { - 'appVersion': '0.24b', + 'appVersion': '0.25b', 'apiVersion': 1 } diff --git a/yomi_base/japanese/__init__.py b/yomi_base/japanese/__init__.py index 77ab2a1..b8006c9 100644 --- a/yomi_base/japanese/__init__.py +++ b/yomi_base/japanese/__init__.py @@ -25,6 +25,6 @@ import translate def initLanguage(): directory = os.path.dirname(__file__) return translate.Translator( - deinflect.Deinflector(os.path.join(directory, 'deinflect.json')), - dictionary.Dictionary(os.path.join(directory, 'dictionary.db')) + deinflect.Deinflector(os.path.join(directory, u'deinflect.json')), + dictionary.Dictionary(os.path.join(directory, u'dictionary.db')) ) diff --git a/yomi_base/preference_data.py b/yomi_base/preference_data.py index 59737a3..666b8e4 100644 --- a/yomi_base/preference_data.py +++ b/yomi_base/preference_data.py @@ -24,8 +24,8 @@ import os class Preferences(object): def __init__(self): - self.filename = os.path.expanduser('~/.yomichan.json') - self.defaults = os.path.join(os.path.dirname(__file__), 'defaults.json') + self.filename = os.path.expanduser(u'~/.yomichan.json') + self.defaults = os.path.join(os.path.dirname(__file__), u'defaults.json') self.settings = {}