toolsutils.py
changeset 10614 57dfde80df11
parent 10591 8e46ed1a0b8a
child 10688 fa29f3628a1b
--- a/toolsutils.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/toolsutils.py	Tue Sep 15 15:33:47 2015 +0200
@@ -112,7 +112,7 @@
             sys.exit(0)
         else:
             copy_file = appl_file + '.default'
-            copy = file(copy_file, 'w')
+            copy = open(copy_file, 'w')
             copy.write(open(ref_file).read())
             copy.close()
             print('keep current version, the new file has been written to', copy_file)
@@ -151,8 +151,8 @@
                 shutil.copyfile(fpath, tfpath)
 
 def fill_templated_file(fpath, tfpath, context):
-    fobj = file(tfpath, 'w')
-    templated = file(fpath).read()
+    fobj = open(tfpath, 'w')
+    templated = open(fpath).read()
     fobj.write(templated % context)
     fobj.close()