Skip to content
Myr

[svn] applied patch from #272, cmemcached is now used if available

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent fde3ff2 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:jinja/loaders.py+4 added-1 removed
271 unmodified lines
272273 def __init__(self, use_memcache, memcache_time=60 * 60 * 24 * 7,274 memcache_host=None, item_prefix='template/'):275 try:276 try:277 from cmemcache import Client278 except ImportError:276 from memcache import Client279 from memcache import Client280 except ImportError:281 raise RuntimeError('the %r loader requires an installed '282 'memcache module' % self.__class__.__name__)283 if memcache_host is None:
451 unmodified lines