Changeset: c019865651c2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c019865651c2
Modified Files:
        testing/Mfilter.py.in
Branch: Aug2011
Log Message:

Use the built-in way of normalizing line endings.


diffs (13 lines):

diff --git a/testing/Mfilter.py.in b/testing/Mfilter.py.in
--- a/testing/Mfilter.py.in
+++ b/testing/Mfilter.py.in
@@ -121,8 +121,7 @@ def mFilter (FILE, IGNORE) :
     ftmp = []
     ig = n = 0
     il = iw = ic = el = ew = ec = al = aw = ac = 0
-    for iline in open(FILE):
-        iline = iline.replace('\r', '')
+    for iline in open(FILE, 'rU'):
         iline = iline.replace('\033[?1034h','')
         oline = xline = ""
         if iline == "#~BeginVariableOutput~#\n"  or  iline == 
"#~BeginProfilingOutput~#\n":
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to