From ebc6044c106b33b9d978c2d3e0997fcd66d4edc4 Mon Sep 17 00:00:00 2001 From: Jawayria Date: Thu, 11 Feb 2021 17:09:43 +0500 Subject: [PATCH] BOM-2028: Removed unused imports from common/djangoapps/{course_modes, edxmako, entitlements} --- common/djangoapps/course_modes/models.py | 3 --- common/djangoapps/edxmako/shortcuts.py | 3 +-- .../entitlements/migrations/0010_backfill_refund_lock.py | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/common/djangoapps/course_modes/models.py b/common/djangoapps/course_modes/models.py index 3d2cb7791c..3c9b532753 100644 --- a/common/djangoapps/course_modes/models.py +++ b/common/djangoapps/course_modes/models.py @@ -5,8 +5,6 @@ Add and create new modes for running courses on this particular LMS from collections import defaultdict, namedtuple from datetime import timedelta - -import inspect # lint-amnesty, pylint: disable=unused-import import logging import six from config_models.models import ConfigurationModel @@ -21,7 +19,6 @@ from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ from edx_django_utils.cache import RequestCache from opaque_keys.edx.django.models import CourseKeyField -from opaque_keys.edx.keys import CourseKey # lint-amnesty, pylint: disable=unused-import from simple_history.models import HistoricalRecords from openedx.core.djangoapps.content.course_overviews.models import CourseOverview diff --git a/common/djangoapps/edxmako/shortcuts.py b/common/djangoapps/edxmako/shortcuts.py index 10b3f15918..f51b538aa7 100644 --- a/common/djangoapps/edxmako/shortcuts.py +++ b/common/djangoapps/edxmako/shortcuts.py @@ -17,7 +17,7 @@ import logging import six from django.conf import settings -from django.http import Http404, HttpResponse # lint-amnesty, pylint: disable=unused-import +from django.http import HttpResponse # lint-amnesty, pylint: disable=unused-import from django.template import engines from django.urls import reverse, NoReverseMatch from six.moves.urllib.parse import urljoin @@ -26,7 +26,6 @@ from django.core.exceptions import ValidationError from edx_django_utils.monitoring import set_custom_attribute from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers -from openedx.core.djangoapps.theming.helpers import is_request_in_themed_site # lint-amnesty, pylint: disable=unused-import from xmodule.util.xmodule_django import get_current_request_hostname from . import Engines diff --git a/common/djangoapps/entitlements/migrations/0010_backfill_refund_lock.py b/common/djangoapps/entitlements/migrations/0010_backfill_refund_lock.py index e4e545a975..26973749f6 100644 --- a/common/djangoapps/entitlements/migrations/0010_backfill_refund_lock.py +++ b/common/djangoapps/entitlements/migrations/0010_backfill_refund_lock.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=missing-module-docstring -from datetime import datetime # lint-amnesty, pylint: disable=unused-import from django.db import migrations, models # lint-amnesty, pylint: disable=unused-import