From 4e0ca7c3819ce71bb6b9e57c1fd43ad22fe4d71d Mon Sep 17 00:00:00 2001 From: aarif Date: Fri, 27 Sep 2019 18:43:46 +0500 Subject: [PATCH] python 3 fixes --- common/lib/xmodule/xmodule/modulestore/django.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/lib/xmodule/xmodule/modulestore/django.py b/common/lib/xmodule/xmodule/modulestore/django.py index 6988e649b4..053b01a6b9 100644 --- a/common/lib/xmodule/xmodule/modulestore/django.py +++ b/common/lib/xmodule/xmodule/modulestore/django.py @@ -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):