From b33a3dfc135c02525dd1e47f6a681eeb9e766c58 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Thu, 9 Nov 2017 00:27:48 +0800 Subject: [PATCH] update note to download --- pydu/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydu/request.py b/pydu/request.py index ba6ba26..423530a 100644 --- a/pydu/request.py +++ b/pydu/request.py @@ -66,6 +66,7 @@ class FileName(object): return dst or cls.from_headers(headers) or cls.from_url(url) +# http://bitbucket.org/techtonik/python-wget/ def download(url, dst=None): """ High level function, which downloads URL into tmp file in current @@ -100,7 +101,6 @@ def download(url, dst=None): if dst_: filename = os.path.join(dst_, filename) - # add numeric ' (x)' suffix if filename already exists if os.path.exists(filename): os.unlink(filename) shutil.move(tmpfile, filename)