diff options
-rw-r--r-- | cheetah/Template.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cheetah/Template.py b/cheetah/Template.py index 01cf676..c903460 100644 --- a/cheetah/Template.py +++ b/cheetah/Template.py @@ -1213,11 +1213,10 @@ class Template(Servlet): ################################################## ## Setup instance state attributes used during the life of template ## post-compile - reserved_searchlist = dir(self) if searchList: for namespace in searchList: if isinstance(namespace, dict): - intersection = set(reserved_searchlist) & set(namespace.keys()) + intersection = Reserved_SearchList & set(namespace.keys()) warn = False if intersection: warn = True @@ -1832,7 +1831,7 @@ class Template(Servlet): return dic T = Template # Short and sweet for debugging at the >>> prompt. - +Reserved_SearchList = set(dir(Template)) def genParserErrorFromPythonException(source, file, generatedPyCode, exception): |