Fixed #28397 -- Removed django.core.exceptions.DjangoRuntimeWarning.

This commit is contained in:
Tim Graham 2017-07-14 10:07:18 -04:00
parent fc2dee6908
commit 2e9ada1551
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
import time import time
import warnings import warnings
from django.core.exceptions import DjangoRuntimeWarning, ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
from django.utils.module_loading import import_string from django.utils.module_loading import import_string
@ -10,7 +10,7 @@ class InvalidCacheBackendError(ImproperlyConfigured):
pass pass
class CacheKeyWarning(DjangoRuntimeWarning): class CacheKeyWarning(RuntimeWarning):
pass pass

View File

@ -8,10 +8,6 @@ class FieldDoesNotExist(Exception):
pass pass
class DjangoRuntimeWarning(RuntimeWarning):
pass
class AppRegistryNotReady(Exception): class AppRegistryNotReady(Exception):
"""The django.apps registry is not populated yet""" """The django.apps registry is not populated yet"""
pass pass

View File

@ -547,6 +547,10 @@ Miscellaneous
<automatic-spatial-transformations>` now raises ``NotImplementedError`` <automatic-spatial-transformations>` now raises ``NotImplementedError``
on MySQL instead of silently using non-transformed geometries. on MySQL instead of silently using non-transformed geometries.
* ``django.core.exceptions.DjangoRuntimeWarning`` is removed. It was only used
in the cache backend as an intermediate class in ``CacheKeyWarning``'s
inheritance of ``RuntimeWarning``.
.. _deprecated-features-2.0: .. _deprecated-features-2.0:
Features deprecated in 2.0 Features deprecated in 2.0