From 3280c6bb0cc2f91821a2f621942c840c6546e073 Mon Sep 17 00:00:00 2001 From: zshi Date: Mon, 28 Nov 2016 12:49:19 +0800 Subject: fix flake8 test error for ez_setup.py Change-Id: Ibb764a41bac05599645d283c5fe3dbe409b2b006 Signed-off-by: zshi --- ez_setup.py | 5 +++-- 1 file 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 = [ -- cgit 1.2.3-korg