summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@monkeypox.org>2010-06-24 11:46:23 -0700
committerR. Tyler Ballance <tyler@monkeypox.org>2010-06-24 11:48:45 -0700
commita969475248fcaa350dc921b2ec52499d8c7fb84e (patch)
treeb387418a499beab29dea515dd5b68ce189b91aad
parentd5e6ce97204ac5ca02b0149072b0b631b9c115a2 (diff)
downloadpython-cheetah-a969475248fcaa350dc921b2ec52499d8c7fb84e.tar.gz
Use `itervalues()` when iterating over cache regions
Suggested by Simon Koenig <simjoko@gmail.com> Change-Id: Ie18c8d9d82b55124440fc2aad508c9525d766a89
-rw-r--r--cheetah/Template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cheetah/Template.py b/cheetah/Template.py
index f42f77b..3eec6c1 100644
--- a/cheetah/Template.py
+++ b/cheetah/Template.py
@@ -1329,8 +1329,8 @@ class Template(Servlet):
"""
if not cacheRegionId:
- for key, cregion in self.getCacheRegions():
- cregion.clear()
+ for cacheRegion in self.getCacheRegions().itervalues():
+ cacheRegion.clear()
else:
cregion = self._CHEETAH__cacheRegions.get(cacheRegionId)
if not cregion: