From: Armin Ronacher Date: Sun, 8 Feb 2009 10:11:57 +0000 (+0100) Subject: Fixed a documenation bug in the cache extension. X-Git-Tag: 2.2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7850dc597e99ffd62628ce9f319f18373f216b6c;p=thirdparty%2Fjinja.git Fixed a documenation bug in the cache extension. --HG-- branch : trunk --- diff --git a/docs/cache_extension.py b/docs/cache_extension.py index c736a650..8fdefb5c 100644 --- a/docs/cache_extension.py +++ b/docs/cache_extension.py @@ -49,7 +49,7 @@ class FragmentCacheExtension(Extension): # if there is no fragment in the cache, render it and store # it in the cache. rv = self.environment.fragment_cache.get(key) - if rv is None: + if rv is not None: return rv rv = caller() self.environment.fragment_cache.add(key, rv, timeout)