Commit 2d888211 authored by tlotze's avatar tlotze

removed atexit handler for removing a temporary download target

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@102176 62d5b8a3-27da-0310-9561-8e5933582275
parent c26233f8
...@@ -18,7 +18,6 @@ try: ...@@ -18,7 +18,6 @@ try:
except ImportError: except ImportError:
from md5 import new as md5 from md5 import new as md5
from zc.buildout.easy_install import realpath from zc.buildout.easy_install import realpath
import atexit
import logging import logging
import os import os
import os.path import os.path
...@@ -133,7 +132,7 @@ class Download(object): ...@@ -133,7 +132,7 @@ class Download(object):
An online resource is always downloaded to a temporary file and moved An online resource is always downloaded to a temporary file and moved
to the specified path only after the download is complete and the to the specified path only after the download is complete and the
checksum (if given) matches. If path is None, the temporary file is 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') parsed_url = urlparse.urlparse(url, 'file')
...@@ -164,7 +163,6 @@ class Download(object): ...@@ -164,7 +163,6 @@ class Download(object):
shutil.move(tmp_path, path) shutil.move(tmp_path, path)
return path return path
else: else:
atexit.register(remove, tmp_path)
return tmp_path return tmp_path
def filename(self, url): 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