Merge pull request #26601 from edx/jawayria/bom-2408-4

BOM-2408: Remove unused imports from openedx/core/djangoapps/{dark_la…
This commit is contained in:
Jawayria
2021-04-07 12:56:37 +05:00
committed by GitHub
4 changed files with 1 additions and 8 deletions

View File

@@ -11,7 +11,6 @@ from django.utils.translation import LANGUAGE_SESSION_KEY
from django.views.decorators.csrf import ensure_csrf_cookie
from openedx.core.djangoapps.lang_pref import COOKIE_DURATION, LANGUAGE_KEY
from openedx.core.lib.mobile_utils import is_request_from_mobile_app # lint-amnesty, pylint: disable=unused-import
@ensure_csrf_cookie

View File

@@ -1,7 +1,4 @@
""" Tests for OAuth Dispatch's jwt module. """
import itertools # lint-amnesty, pylint: disable=unused-import
from datetime import timedelta
from unittest.mock import patch

View File

@@ -20,8 +20,7 @@ from openedx.core.djangoapps.schedules.content_highlights import course_has_high
from openedx.core.djangoapps.schedules.models import ScheduleExperience
from openedx.core.djangoapps.schedules.utils import reset_self_paced_schedule
from common.djangoapps.student.models import CourseEnrollment
from common.djangoapps.student.signals import ENROLLMENT_TRACK_UPDATED
from common.djangoapps.student.signals import ENROLLMENT_TRACK_UPDATED # lint-amnesty, pylint: disable=unused-import
from .models import Schedule
from .tasks import update_course_schedules

View File

@@ -4,8 +4,6 @@ import datetime
import logging
import pytz
from django.db.models import F, Subquery # lint-amnesty, pylint: disable=unused-import
from django.db.models.functions import Greatest # lint-amnesty, pylint: disable=unused-import
from django.db import transaction
from openedx.core.djangoapps.schedules.models import Schedule