diff options
author | hongbo tian <hongbo.tianhongbo@huawei.com> | 2016-11-30 01:23:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-30 01:23:40 +0000 |
commit | 2803c022fc5ad60f9240bcbba46ffa1297de06c4 (patch) | |
tree | ac6907ab5bbbb57ab0d08e19683683b2f22bacf8 /ez_setup.py | |
parent | a76ccc2ece0e29df1ac9b858ff5d17d4c461ae0c (diff) | |
parent | 3280c6bb0cc2f91821a2f621942c840c6546e073 (diff) |
Merge "fix flake8 test error for ez_setup.py"
Diffstat (limited to 'ez_setup.py')
-rw-r--r-- | ez_setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ez_setup.py b/ez_setup.py index 4ef3ee01..36da1e62 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -125,7 +125,7 @@ def _do_download(version, download_base, to_dir, download_delay): egg = os.path.join(to_dir, tp.format(**locals())) if not os.path.exists(egg): archive = download_setuptools(version, download_base, - to_dir, download_delay) + to_dir, download_delay) _build_egg(egg, archive, to_dir) sys.path.insert(0, egg) @@ -235,7 +235,8 @@ def download_file_powershell(url, target): ps_cmd = ( "[System.Net.WebRequest]::DefaultWebProxy.Credentials = " "[System.Net.CredentialCache]::DefaultCredentials; " - '(new-object System.Net.WebClient).DownloadFile("%(url)s", "%(target)s")' + '(new-object System.Net.WebClient).DownloadFile("%(url)s", \ + "%(target)s")' % locals() ) cmd = [ |