mailr6512 - /1.3/relax_io.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 28, 2008 - 17:50:
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."""
 




Related Messages


Powered by MHonArc, Updated Sat Jun 28 18:00:19 2008