[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/download.py removed atexit handler for removing a temporary download target

Thomas Lotze tl at gocept.com
Thu Jul 23 15:12:46 EDT 2009


Log message for revision 102176:
  removed atexit handler for removing a temporary download target

Changed:
  U   zc.buildout/trunk/src/zc/buildout/download.py

-=-
Modified: zc.buildout/trunk/src/zc/buildout/download.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/download.py	2009-07-23 19:03:37 UTC (rev 102175)
+++ zc.buildout/trunk/src/zc/buildout/download.py	2009-07-23 19:12:45 UTC (rev 102176)
@@ -18,7 +18,6 @@
 except ImportError:
     from md5 import new as md5
 from zc.buildout.easy_install import realpath
-import atexit
 import logging
 import os
 import os.path
@@ -133,7 +132,7 @@
         An online resource is always downloaded to a temporary file and moved
         to the specified path only after the download is complete and the
         checksum (if given) matches. If path is None, the temporary file is
-        returned and scheduled for deletion at process exit.
+        returned and the client code is responsible for cleaning it up.
 
         """
         parsed_url = urlparse.urlparse(url, 'file')
@@ -164,7 +163,6 @@
             shutil.move(tmp_path, path)
             return path
         else:
-            atexit.register(remove, tmp_path)
             return tmp_path
 
     def filename(self, url):



More information about the Checkins mailing list