1

I hate Python 2.7

This commit is contained in:
Alex Yatskov 2016-08-23 09:23:26 -07:00
parent 5372aa725f
commit 9ae2ccfb5d
3 changed files with 5 additions and 5 deletions

View File

@ -17,6 +17,6 @@
c = { c = {
'appVersion': '0.24b', 'appVersion': '0.25b',
'apiVersion': 1 'apiVersion': 1
} }

View File

@ -25,6 +25,6 @@ import translate
def initLanguage(): def initLanguage():
directory = os.path.dirname(__file__) directory = os.path.dirname(__file__)
return translate.Translator( return translate.Translator(
deinflect.Deinflector(os.path.join(directory, 'deinflect.json')), deinflect.Deinflector(os.path.join(directory, u'deinflect.json')),
dictionary.Dictionary(os.path.join(directory, 'dictionary.db')) dictionary.Dictionary(os.path.join(directory, u'dictionary.db'))
) )

View File

@ -24,8 +24,8 @@ import os
class Preferences(object): class Preferences(object):
def __init__(self): def __init__(self):
self.filename = os.path.expanduser('~/.yomichan.json') self.filename = os.path.expanduser(u'~/.yomichan.json')
self.defaults = os.path.join(os.path.dirname(__file__), 'defaults.json') self.defaults = os.path.join(os.path.dirname(__file__), u'defaults.json')
self.settings = {} self.settings = {}