aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mako/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mako/template.py b/lib/mako/template.py
index f7d7fef..eea7c40 100644
--- a/lib/mako/template.py
+++ b/lib/mako/template.py
@@ -154,7 +154,7 @@ class ModuleTemplate(Template):
e.g.::
t = Template("this is a template")
- f = file("mymodule.py")
+ f = file("mymodule.py", "w")
f.write(t.code)
f.close()