Author: bugman Date: Sat Jun 28 17:50:48 2008 New Revision: 6512 URL: http://svn.gna.org/viewcvs/relax?rev=6512&view=rev Log: Added a close() method to DummyFileObject. 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=6512&r1=6511&r2=6512&view=diff ============================================================================== --- 1.3/relax_io.py (original) +++ 1.3/relax_io.py Sat Jun 28 17:50:48 2008 @@ -449,6 +449,12 @@ self.data = '' + def close(self): + """A method for deleting the contents of this object.""" + + del self.data + + def write(self, str): """Mimic the file object write() method so that this class can be used as a file object."""