From c679f357a8127d7776b60679071a7b791d39a5b3 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 4 Feb 2019 19:40:07 -0500 Subject: [PATCH] Refs #27753 -- Removed django.utils.lru_cache. --- django/utils/lru_cache.py | 5 ----- docs/releases/3.0.txt | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 django/utils/lru_cache.py diff --git a/django/utils/lru_cache.py b/django/utils/lru_cache.py deleted file mode 100644 index f5187ded56..0000000000 --- a/django/utils/lru_cache.py +++ /dev/null @@ -1,5 +0,0 @@ -from functools import lru_cache # noqa - -# Deprecate or remove this module when no supported version of Django still -# supports Python 2. Until then, keep it to allow pluggable apps to support -# Python 2 and Python 3 without raising a deprecation warning. diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index 1c0a7d1f23..14fa129bf2 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -251,6 +251,9 @@ Django 3.0, we're removing these APIs at this time. * ``django.test.utils.patch_logger()`` - Use :meth:`unittest.TestCase.assertLogs` instead. +* ``django.utils.lru_cache.lru_cache()`` - Alias of + :func:`functools.lru_cache`. + Miscellaneous -------------