From 4c47904c5d9c84ad1194d0640aaefb117f4cc578 Mon Sep 17 00:00:00 2001 From: farhan Date: Wed, 13 Sep 2023 13:29:18 +0500 Subject: [PATCH] chore: Optimize imports --- xblock/utils/resources.py | 4 +--- xblock/utils/templatetags/i18n.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) 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()