python 3 fixes

This commit is contained in:
aarif
2019-09-27 18:43:46 +05:00
parent 2d215cccb8
commit 4e0ca7c381

View File

@@ -384,6 +384,7 @@ class ModuleI18nService(object):
pass
def __getattr__(self, name):
name = 'gettext' if six.PY3 and name == 'ugettext' else name
return getattr(self.translator, name)
def strftime(self, *args, **kwargs):