Update of /cvsroot/monetdb/buildtools/autogen/autogen
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29431/autogen/autogen

Modified Files:
      Tag: MonetDB_1-22
        am.py codegen.py 
Log Message:
We deal with text files only, so no need to open in binary mode.

Index: codegen.py
===================================================================
RCS file: /cvsroot/monetdb/buildtools/autogen/autogen/codegen.py,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -d -r1.17 -r1.17.2.1
--- codegen.py  15 Jan 2008 13:42:46 -0000      1.17
+++ codegen.py  22 Feb 2008 15:56:14 -0000      1.17.2.1
@@ -181,7 +181,7 @@
 def readfilepart(f,ext):
     dir,file = os.path.split(f)
     fn,fext = split_filename(file)
-    src = open(f, 'rb')
+    src = open(f, 'r')
     buf = src.read()
     src.close()
     buf2 = ""

Index: am.py
===================================================================
RCS file: /cvsroot/monetdb/buildtools/autogen/autogen/am.py,v
retrieving revision 1.67
retrieving revision 1.67.2.1
diff -u -d -r1.67 -r1.67.2.1
--- am.py       11 Jan 2008 10:33:50 -0000      1.67
+++ am.py       22 Feb 2008 15:56:13 -0000      1.67.2.1
@@ -1031,7 +1031,7 @@
 
     # use binary mode since automake on Cygwin can't deal with \r\n
     # line endings
-    fd = open(os.path.join(cwd, 'Makefile.am'), "wb")
+    fd = open(os.path.join(cwd, 'Makefile.am'), "w")
 
     fd.write('''
 ## This file is generated by autogen.py, do not edit


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to