Little fix in the install script.

Sat, 06 Dec 2014 20:19:07 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 06 Dec 2014 20:19:07 +0100
changeset 3962
b75057280077
parent 3960
e0429dd20a64
child 3966
969a3d41c402

Little fix in the install script.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sat Dec 06 13:11:15 2014 +0100
+++ b/install.py	Sat Dec 06 20:19:07 2014 +0100
@@ -273,7 +273,7 @@
     if sys.version_info[0] == 2:
         f = codecs.open(src, "r", "utf-8")
     else:
-        f = open(src, "r")
+        f = open(src, "r", encoding="utf-8")
     text = f.read()
     f.close()
     
@@ -282,7 +282,7 @@
     if sys.version_info[0] == 2:
         f = codecs.open(dst, "w", "utf-8")
     else:
-        f = open(dst, "w")
+        f = open(dst, "w", encoding="utf-8")
     f.write(text)
     f.close()
     os.chmod(dst, 0o644)

eric ide

mercurial