#NEWLINE# def __init__( self , server , params ) : #NEWLINE# #INDENT# import warnings #NEWLINE# warnings . warn ( 'memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.' , PendingDeprecationWarning ) #NEWLINE# try : #NEWLINE# #INDENT# import memcache #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# raise InvalidCacheBackendError ( "Memcached cache backend requires either the 'memcache' or 'cmemcache' library" ) #NEWLINE# #UNINDENT# super ( CacheClass , self ) . __init__ ( server , self , library = memcache , value_not_found_exception = ValueError )