substitute '%s' in string 'Cache key will cause errors if used with memcached: %s (longer than %s)' with key,
warnings . warn ( 'Cache key will cause errors if used with memcached: ' '%s (longer than %s)' % ( key , MEMCACHE_MAX_KEY_LENGTH ) , CacheKeyWarning )