mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
This commit is contained in:
@@ -5,6 +5,7 @@ import sys
|
||||
import warnings
|
||||
|
||||
from django.utils import six
|
||||
from django.utils.deprecation import RemovedInDjango19Warning
|
||||
from django.utils.six.moves import copyreg
|
||||
|
||||
|
||||
@@ -27,7 +28,7 @@ def memoize(func, cache, num_args):
|
||||
"""
|
||||
warnings.warn("memoize wrapper is deprecated and will be removed in "
|
||||
"Django 1.9. Use django.utils.lru_cache instead.",
|
||||
PendingDeprecationWarning, stacklevel=2)
|
||||
RemovedInDjango19Warning, stacklevel=2)
|
||||
|
||||
@wraps(func)
|
||||
def wrapper(*args):
|
||||
|
||||
Reference in New Issue
Block a user