diff --git a/openedx/core/djangoapps/theming/tests/test_helpers.py b/openedx/core/djangoapps/theming/tests/test_helpers.py index 23e5e57a92..57d523d1b8 100644 --- a/openedx/core/djangoapps/theming/tests/test_helpers.py +++ b/openedx/core/djangoapps/theming/tests/test_helpers.py @@ -6,7 +6,6 @@ Test helpers for Comprehensive Theming. from unittest.mock import Mock, patch from django.conf import settings from django.test import TestCase, override_settings -from edx_django_utils.cache import RequestCache # lint-amnesty, pylint: disable=unused-import from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers from openedx.core.djangoapps.theming import helpers as theming_helpers diff --git a/openedx/core/djangoapps/theming/tests/test_theme_style_overrides.py b/openedx/core/djangoapps/theming/tests/test_theme_style_overrides.py index ed2bee2e11..0971ac0415 100644 --- a/openedx/core/djangoapps/theming/tests/test_theme_style_overrides.py +++ b/openedx/core/djangoapps/theming/tests/test_theme_style_overrides.py @@ -9,7 +9,7 @@ from django.test import TestCase from django.urls import reverse from openedx.core.djangoapps.theming.tests.test_util import with_comprehensive_theme -from openedx.core.djangolib.testing.utils import skip_unless_cms, skip_unless_lms # lint-amnesty, pylint: disable=unused-import +from openedx.core.djangolib.testing.utils import skip_unless_lms # lint-amnesty, pylint: disable=unused-import from common.djangoapps.student.tests.factories import UserFactory diff --git a/openedx/core/djangoapps/user_authn/utils.py b/openedx/core/djangoapps/user_authn/utils.py index 2bf24cd81e..6988e36fe2 100644 --- a/openedx/core/djangoapps/user_authn/utils.py +++ b/openedx/core/djangoapps/user_authn/utils.py @@ -10,8 +10,6 @@ from django.utils import http from oauth2_provider.models import Application from six.moves.urllib.parse import urlparse # pylint: disable=import-error -from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers # lint-amnesty, pylint: disable=unused-import - def is_safe_login_or_logout_redirect(redirect_to, request_host, dot_client_id, require_https): """ diff --git a/openedx/core/djangoapps/xblock/rest_api/views.py b/openedx/core/djangoapps/xblock/rest_api/views.py index de3d633d8e..92d6fc2af1 100644 --- a/openedx/core/djangoapps/xblock/rest_api/views.py +++ b/openedx/core/djangoapps/xblock/rest_api/views.py @@ -10,7 +10,7 @@ from django.contrib.auth import get_user_model from django.views.decorators.clickjacking import xframe_options_exempt from django.views.decorators.csrf import csrf_exempt from rest_framework import permissions -from rest_framework.decorators import api_view, permission_classes, authentication_classes # lint-amnesty, pylint: disable=unused-import +from rest_framework.decorators import api_view, permission_classes # lint-amnesty, pylint: disable=unused-import from rest_framework.exceptions import PermissionDenied, AuthenticationFailed from rest_framework.response import Response from xblock.django.request import DjangoWebobRequest, webob_to_django_response @@ -22,6 +22,7 @@ from ..api import ( get_handler_url as _get_handler_url, load_block, render_block_view as _render_block_view, + ) from ..utils import validate_secure_token_for_xblock_handler diff --git a/openedx/core/djangoapps/xblock/tests/test_utils.py b/openedx/core/djangoapps/xblock/tests/test_utils.py index ed5c52641a..c8181165c7 100644 --- a/openedx/core/djangoapps/xblock/tests/test_utils.py +++ b/openedx/core/djangoapps/xblock/tests/test_utils.py @@ -9,7 +9,6 @@ from freezegun import freeze_time from openedx.core.djangoapps.xblock.utils import ( # lint-amnesty, pylint: disable=reimported get_secure_token_for_xblock_handler, - validate_secure_token_for_xblock_handler, _get_secure_token_for_xblock_handler, validate_secure_token_for_xblock_handler ) diff --git a/openedx/core/djangoapps/xblock/utils.py b/openedx/core/djangoapps/xblock/utils.py index 81794a0640..901598e010 100644 --- a/openedx/core/djangoapps/xblock/utils.py +++ b/openedx/core/djangoapps/xblock/utils.py @@ -10,7 +10,6 @@ from uuid import uuid4 import crum from django.conf import settings -from six import text_type # lint-amnesty, pylint: disable=unused-import def get_secure_token_for_xblock_handler(user_id, block_key_str, time_idx=0):