diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-11 12:20:07 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-11 12:20:07 +0000 |
| commit | 1070c57b83efdfd4fbed09280fcdaafc6d9c1a81 (patch) | |
| tree | 93b5721fe4e0664b993dd0d0b1dee544df304b22 /django/core | |
| parent | 5e5be2c44caaae3192a9f8ae1ce0adc0da3d8c4d (diff) | |
Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core')
| -rw-r--r-- | django/core/cache/backends/memcached.py | 2 | ||||
| -rw-r--r-- | django/core/context_processors.py | 2 | ||||
| -rw-r--r-- | django/core/mail/__init__.py | 2 | ||||
| -rw-r--r-- | django/core/management/commands/test.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 7d6b5b362b..cd14fdaf95 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -10,7 +10,7 @@ try: import warnings warnings.warn( "Support for the 'cmemcache' library has been deprecated. Please use python-memcached instead.", - PendingDeprecationWarning + DeprecationWarning ) except ImportError: try: diff --git a/django/core/context_processors.py b/django/core/context_processors.py index a5f29dfb2d..7a59728bfc 100644 --- a/django/core/context_processors.py +++ b/django/core/context_processors.py @@ -24,7 +24,7 @@ def auth(request): "The context processor at `django.core.context_processors.auth` is " \ "deprecated; use the path `django.contrib.auth.context_processors.auth` " \ "instead.", - PendingDeprecationWarning + DeprecationWarning ) from django.contrib.auth.context_processors import auth as auth_context_processor return auth_context_processor(request) diff --git a/django/core/mail/__init__.py b/django/core/mail/__init__.py index f9d1210791..d7a868dfc2 100644 --- a/django/core/mail/__init__.py +++ b/django/core/mail/__init__.py @@ -106,6 +106,6 @@ class SMTPConnection(_SMTPConnection): import warnings warnings.warn( 'mail.SMTPConnection is deprecated; use mail.get_connection() instead.', - PendingDeprecationWarning + DeprecationWarning ) super(SMTPConnection, self).__init__(*args, **kwds) diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py index 6d0a5d8e2e..1431f0059f 100644 --- a/django/core/management/commands/test.py +++ b/django/core/management/commands/test.py @@ -29,7 +29,7 @@ class Command(BaseCommand): import warnings warnings.warn( 'Function-based test runners are deprecated. Test runners should be classes with a run_tests() method.', - PendingDeprecationWarning + DeprecationWarning ) failures = TestRunner(test_labels, verbosity=verbosity, interactive=interactive) else: |
