1
0

updates for python3

This commit is contained in:
ThomasV
2017-03-15 12:13:20 +01:00
parent 65aeb0bd3c
commit ab15ff3a00
27 changed files with 50 additions and 51 deletions

View File

@@ -1,6 +1,6 @@
import gettext
class _(unicode):
class _(str):
observers = set()
lang = None
@@ -15,9 +15,7 @@ class _(unicode):
@staticmethod
def translate(s, *args, **kwargs):
tr = _.lang(s).format(args, kwargs)
tr = tr.decode('utf8')
return tr
return _.lang(s).format(args, kwargs)
@staticmethod
def bind(label):