Author: bugman Date: Wed Feb 15 10:58:37 2012 New Revision: 15334 URL: http://svn.gna.org/viewcvs/relax?rev=15334&view=rev Log: Created the SplitIO.flush() method so that a flush() call now works with the -t and -l command line args. This simply calls the flush() methods of both streams. 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=15334&r1=15333&r2=15334&view=diff ============================================================================== --- 1.3/relax_io.py (original) +++ 1.3/relax_io.py Wed Feb 15 10:58:37 2012 @@ -1005,6 +1005,14 @@ """Class for splitting an IO stream to two outputs.""" + def flush(self): + """Flush all streams.""" + + # Call the streams' methods. + self.stream1.flush() + self.stream2.flush() + + def split(self, stream1, stream2): """Function for setting the streams."""