From e6a5e41cdfe71cebe72b14207923d1befc99f994 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 Apr 2011 13:46:09 +0000 Subject: [PATCH] Added missing warnings import git-svn-id: http://code.djangoproject.com/svn/django/trunk@16001 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/cache/backends/memcached.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 6cca2f8c7c..e45249874d 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -128,6 +128,7 @@ class BaseMemcachedCache(BaseCache): class CacheClass(BaseMemcachedCache): def __init__(self, server, params): + import warnings warnings.warn( "memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.", PendingDeprecationWarning