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