From 7850dc597e99ffd62628ce9f319f18373f216b6c Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 8 Feb 2009 11:11:57 +0100 Subject: [PATCH] Fixed a documenation bug in the cache extension. --HG-- branch : trunk --- docs/cache_extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cache_extension.py b/docs/cache_extension.py index c736a65..8fdefb5 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) -- 2.26.2