[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Backport to python2.0 (which lacked file.xreadlines().)



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.seul.org:/tmp/cvs-serv9842/lib/mixminion

Modified Files:
	Modules.py 
Log Message:
Backport to python2.0 (which lacked file.xreadlines().)

Index: Modules.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Modules.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Modules.py	2 Dec 2002 03:24:23 -0000	1.18
+++ Modules.py	2 Dec 2002 03:41:49 -0000	1.19
@@ -381,7 +381,10 @@
 	address_line_re = re.compile(r'\s*([^\s:=]+)\s*[:=]\s*(\S+)')
 	try:
 	    lineno = 0
-	    for line in f.xreadlines():
+	    while 1:
+                line = f.readline()
+                if not line:
+                    break
 		line = line.strip()
 		lineno += 1
 		if line == '' or line[0] == '#':