summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUlas Kozat <ulas.kozat@gmail.com>2016-06-09 12:13:03 -0700
committerUlas Kozat <ulas.kozat@gmail.com>2016-06-09 12:13:03 -0700
commit5b6b8842cfa56abcb4d7f23b37d02912a7d26199 (patch)
treefad9b5bdebc9866143bde64d27c8218ae45503de /lib
parent4b29a244a43340e9758941222fdbc75060c5f279 (diff)
Readded falsely deleted line for recording registered nodes in dictionary object
Change-Id: Ie000af03a00c8b0abb37fba8cf8634cd2824812d Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
Diffstat (limited to 'lib')
-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()