Commit aec64a48 authored by Thomas Lotze's avatar Thomas Lotze

removed atexit handler for removing a temporary download target

parent 841305a5
......@@ -18,7 +18,6 @@ try:
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 @@ class Download(object):
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 @@ class Download(object):
shutil.move(tmp_path, path)
return path
else:
atexit.register(remove, tmp_path)
return tmp_path
def filename(self, url):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment