diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-06-23 16:12:57 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-06-23 16:12:57 +0000 |
commit | 78884f2fecc598bd8b35cdf8b4101b43d6b8af18 (patch) | |
tree | 636f44f419e94668c4eda39a8d388476eff53609 /lib/mako/codegen.py | |
parent | a136efc13700d33862da16a54e411ec27d3941af (diff) | |
download | external_python_mako-78884f2fecc598bd8b35cdf8b4101b43d6b8af18.tar.gz external_python_mako-78884f2fecc598bd8b35cdf8b4101b43d6b8af18.tar.bz2 external_python_mako-78884f2fecc598bd8b35cdf8b4101b43d6b8af18.zip |
- cached blocks now use the current context when renderingrel_0_2_2
an expired section, instead of the original context
passed in [ticket:87]
Diffstat (limited to 'lib/mako/codegen.py')
-rw-r--r-- | lib/mako/codegen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mako/codegen.py b/lib/mako/codegen.py index 04ee339..3b1d531 100644 --- a/lib/mako/codegen.py +++ b/lib/mako/codegen.py @@ -370,9 +370,9 @@ class _GenerateRenderMethod(object): if buffered or filtered or cached: if buffered or cached: # in a caching scenario, don't try to get a writer - # from the context after popping - if the callable - # is called within a cache refresh operation, there's - # no more buffers on the stack + # from the context after popping; assume the caching + # implemenation might be using a context with no + # extra buffers self.printer.writelines( "finally:", "__M_buf = context._pop_buffer()" |