1
0

cleanup six (no python2 support)

This commit is contained in:
ThomasV
2017-09-04 14:43:31 +02:00
parent f8c592f743
commit 216e9403be
21 changed files with 33 additions and 100 deletions

View File

@@ -27,19 +27,14 @@ from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import gettext, os, six
import gettext, os
LOCALE_DIR = os.path.join(os.path.dirname(__file__), 'locale')
language = gettext.translation('electrum', LOCALE_DIR, fallback = True)
if six.PY2:
def _(x):
global language
return language.ugettext(x)
else:
def _(x):
global language
return language.gettext(x)
def _(x):
global language
return language.gettext(x)
def set_language(x):
global language