diff --git a/xblock/utils/resources.py b/xblock/utils/resources.py index 435869b24..69d520dc2 100644 --- a/xblock/utils/resources.py +++ b/xblock/utils/resources.py @@ -7,12 +7,10 @@ import warnings import pkg_resources - from django.template import Context, Template, Engine from django.template.backends.django import get_installed_libraries - -from mako.template import Template as MakoTemplate from mako.lookup import TemplateLookup as MakoTemplateLookup +from mako.template import Template as MakoTemplate class ResourceLoader: diff --git a/xblock/utils/templatetags/i18n.py b/xblock/utils/templatetags/i18n.py index 90ab8a83d..0b8634d08 100644 --- a/xblock/utils/templatetags/i18n.py +++ b/xblock/utils/templatetags/i18n.py @@ -10,7 +10,6 @@ from django.templatetags import i18n from django.utils.translation import get_language, trans_real - register = Library()