mtd/scripts modify.py,1.1,1.2
gleixner at infradead.org
gleixner at infradead.org
Sun Mar 13 14:23:08 EST 2005
Update of /home/cvs/mtd/scripts
In directory phoenix.infradead.org:/tmp/cvs-serv5275
Modified Files:
modify.py
Log Message:
Handle eof correct
Index: modify.py
===================================================================
RCS file: /home/cvs/mtd/scripts/modify.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- modify.py 13 Mar 2005 18:09:07 -0000 1.1
+++ modify.py 13 Mar 2005 19:23:05 -0000 1.2
@@ -53,6 +53,10 @@
if line.find(end) >= 0:
break
+ # end of files
+ if linecnt == len(lines):
+ linecnt = linecnt + 1
+
return startline - 1, linecnt - 1
# Here we go
More information about the linux-mtd-cvs
mailing list