[Zope-Checkins] CVS: Zope/lib/python/webdav - xmltools.py:1.15

Jeremy Hylton jeremy@zope.com
Tue, 8 Apr 2003 14:48:23 -0400


Update of /cvs-repository/Zope/lib/python/webdav
In directory cvs.zope.org:/tmp/cvs-serv7036/lib/python/webdav

Modified Files:
	xmltools.py 
Log Message:
Cleanup __del__.

You never need an __del__ to close a file.  A file closes itself when
it is deallocated.

Don't give an object a magic __del__ attribute.  It won't work with
new-style classes, and it's obscure anyway.


=== Zope/lib/python/webdav/xmltools.py 1.14 => 1.15 ===
--- Zope/lib/python/webdav/xmltools.py:1.14	Mon Mar 31 12:38:14 2003
+++ Zope/lib/python/webdav/xmltools.py	Tue Apr  8 14:48:22 2003
@@ -102,10 +102,6 @@
             result.append(node.toxml())
         return ''.join(result)
 
-    #def __del__(self):
-    #    self.document=None
-    #    print 'bye!'
-
 class Element(Node):
     __type__=type_element