install.py

changeset 45
9a18f4dbb493
parent 40
c2e5472b112c
child 97
c4086afea02b
--- a/install.py	Sun Jan 10 13:59:15 2010 +0000
+++ b/install.py	Sun Jan 10 19:19:52 2010 +0000
@@ -106,7 +106,7 @@
     @param name the name of the file.
     @param text the contents to copy to the file.
     """
-    f = open(name,"w")
+    f = open(name,"w", encoding = "utf-8")
     f.write(text)
     f.close()
 
@@ -207,7 +207,7 @@
     if not os.path.exists(fname):
         if not os.path.exists(pdir):
             os.mkdir(pdir,  0o755)
-        f = open(fname, "w")
+        f = open(fname, "w", encoding = "utf-8")
         f.write(\
 '''# -*- coding: utf-8 -*-
 

eric ide

mercurial