Author: bugman Date: Sat Jun 28 18:29:11 2008 New Revision: 6519 URL: http://svn.gna.org/viewcvs/relax?rev=6519&view=rev Log: Fix for the DummyFileObject.readlines() method. The last line is empty because of the split() call, and should not be returned. Modified: 1.3/relax_io.py Modified: 1.3/relax_io.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=6519&r1=6518&r2=6519&view=diff ============================================================================== --- 1.3/relax_io.py (original) +++ 1.3/relax_io.py Sat Jun 28 18:29:11 2008 @@ -492,8 +492,8 @@ for i in xrange(len(lines)): lines[i] = lines[i] + '\n' - # Return the file lines. - return lines + # Return the file lines (except the last as it is empty). + return lines[:-1]