Added missing warnings import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
29642fa76f
commit
e6a5e41cdf
|
@ -128,6 +128,7 @@ class BaseMemcachedCache(BaseCache):
|
||||||
|
|
||||||
class CacheClass(BaseMemcachedCache):
|
class CacheClass(BaseMemcachedCache):
|
||||||
def __init__(self, server, params):
|
def __init__(self, server, params):
|
||||||
|
import warnings
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.",
|
"memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.",
|
||||||
PendingDeprecationWarning
|
PendingDeprecationWarning
|
||||||
|
|
Loading…
Reference in New Issue