aboutsummaryrefslogtreecommitdiffstats
path: root/mako/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'mako/ast.py')
-rw-r--r--mako/ast.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mako/ast.py b/mako/ast.py
index 515d7b8..f2f09d6 100644
--- a/mako/ast.py
+++ b/mako/ast.py
@@ -83,6 +83,8 @@ class PythonFragment(PythonCode):
code = "if False:pass\n" + code + "pass"
elif keyword == 'except':
code = "try:pass\n" + code + "pass"
+ elif keyword == 'with':
+ code = code + "pass"
else:
raise exceptions.CompileException(
"Unsupported control keyword: '%s'" %