From 389bc0d35d4b816cbee31dcf1a80e12af4fdebd6 Mon Sep 17 00:00:00 2001 From: Jawayria Date: Wed, 1 Sep 2021 13:53:33 +0500 Subject: [PATCH] chore: Remove django.utils.lru_cache --- openedx/core/djangoapps/content_libraries/library_bundle.py | 2 +- openedx/core/djangoapps/xblock/runtime/runtime.py | 2 +- openedx/core/storage.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/content_libraries/library_bundle.py b/openedx/core/djangoapps/content_libraries/library_bundle.py index ff9c75500c..4fc1cafdfc 100644 --- a/openedx/core/djangoapps/content_libraries/library_bundle.py +++ b/openedx/core/djangoapps/content_libraries/library_bundle.py @@ -5,7 +5,7 @@ Helper code for working with Blockstore bundles that contain OLX import dateutil.parser import logging # lint-amnesty, pylint: disable=wrong-import-order -from django.utils.lru_cache import lru_cache +from functools import lru_cache from opaque_keys.edx.locator import BundleDefinitionLocator, LibraryUsageLocatorV2 from xblock.core import XBlock from xblock.plugin import PluginMissingError diff --git a/openedx/core/djangoapps/xblock/runtime/runtime.py b/openedx/core/djangoapps/xblock/runtime/runtime.py index d1e4b6a7a5..4bf9f2f0f6 100644 --- a/openedx/core/djangoapps/xblock/runtime/runtime.py +++ b/openedx/core/djangoapps/xblock/runtime/runtime.py @@ -11,7 +11,7 @@ from completion.models import BlockCompletion from completion.services import CompletionService from django.contrib.auth import get_user_model from django.core.exceptions import PermissionDenied -from django.utils.lru_cache import lru_cache +from functools import lru_cache from eventtracking import tracker from web_fragments.fragment import Fragment from xblock.exceptions import NoSuchServiceError diff --git a/openedx/core/storage.py b/openedx/core/storage.py index 4e2f0643ed..bdae7d7e9e 100644 --- a/openedx/core/storage.py +++ b/openedx/core/storage.py @@ -7,7 +7,7 @@ from django.conf import settings from django.contrib.staticfiles.storage import StaticFilesStorage from django.core.files.storage import get_storage_class, FileSystemStorage from django.utils.deconstruct import deconstructible -from django.utils.lru_cache import lru_cache +from functools import lru_cache from pipeline.storage import NonPackagingMixin from require.storage import OptimizedFilesMixin from storages.backends.s3boto3 import S3Boto3Storage