summaryrefslogtreecommitdiffstats
path: root/lib/util/miscutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/miscutil.py')
-rw-r--r--lib/util/miscutil.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/miscutil.py b/lib/util/miscutil.py
index ea284af..3fc95a6 100644
--- a/lib/util/miscutil.py
+++ b/lib/util/miscutil.py
@@ -10,3 +10,8 @@ def read_templatefile(temp_filename):
f.close()
return lines
+def write_templatefile(temp_filename, template_lines):
+ f = open(temp_filename, 'w')
+ for item in template_lines:
+ print>>f, item
+ f.close()