I hate Python 2.7
This commit is contained in:
parent
5372aa725f
commit
9ae2ccfb5d
@ -17,6 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
c = {
|
c = {
|
||||||
'appVersion': '0.24b',
|
'appVersion': '0.25b',
|
||||||
'apiVersion': 1
|
'apiVersion': 1
|
||||||
}
|
}
|
||||||
|
@ -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'))
|
||||||
)
|
)
|
||||||
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user