forked from pool/python-cachy
- Add patch support-pymemcache.patch:
* Use pymemcache rather than other clients. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachy?expand=0&rev=7
This commit is contained in:
19
support-pymemcache.patch
Normal file
19
support-pymemcache.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
Index: cachy-0.3.0/cachy/stores/memcached_store.py
|
||||
===================================================================
|
||||
--- cachy-0.3.0.orig/cachy/stores/memcached_store.py
|
||||
+++ cachy-0.3.0/cachy/stores/memcached_store.py
|
||||
@@ -1,12 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
try:
|
||||
- from pylibmc import memcache
|
||||
+ from pymemcache.client import base as memcache
|
||||
except ImportError:
|
||||
- try:
|
||||
- import memcache
|
||||
- except ImportError:
|
||||
- memcache = None
|
||||
+ memcache = None
|
||||
|
||||
from ..contracts.taggable_store import TaggableStore
|
||||
|
||||
Reference in New Issue
Block a user