Ticket #12427: cmemcache.diff

File cmemcache.diff, 649 bytes (added by otherjacob, 15 years ago)

Adds PendingDeprecationWarning when using cmemcache

  • django/core/cache/backends/memcached.py

     
    44
    55from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError
    66from django.utils.encoding import smart_unicode, smart_str
     7from warnings import warn
    78
    89try:
    910    import cmemcache as memcache
     11    warn("The 'cmemcache' library is deprecated. Please use python-memcached instead.",
     12            PendingDeprecationWarning)
    1013except ImportError:
    1114    try:
    1215        import memcache
Back to Top