From 2287426ba6d363e919f900027be907db3a30181e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 10 Mar 2010 14:02:59 +0000 Subject: [PATCH] Fixed #12427 -- Started the deprecation path for cmemcache support. Thanks to otherjacob for his work on this issue. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12754 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/cache/backends/memcached.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 1e4e482b11..7d6b5b362b 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -7,6 +7,11 @@ from django.utils.encoding import smart_unicode, smart_str try: import cmemcache as memcache + import warnings + warnings.warn( + "Support for the 'cmemcache' library has been deprecated. Please use python-memcached instead.", + PendingDeprecationWarning + ) except ImportError: try: import memcache