From 9bcdcbda2b5e34c204976e7b43de62f9ac7bd591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 1 Jun 2020 18:10:07 -0500 Subject: pep8 --- helperscripts/windows-virtualenv/__main__.py | 6 +++--- helperscripts/windows-virtualenv/virtualenv.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'helperscripts/windows-virtualenv') diff --git a/helperscripts/windows-virtualenv/__main__.py b/helperscripts/windows-virtualenv/__main__.py index 76c91b7..9305f6c 100755 --- a/helperscripts/windows-virtualenv/__main__.py +++ b/helperscripts/windows-virtualenv/__main__.py @@ -156,16 +156,16 @@ def parse_args(): def writeout(msg, *args): """write a line to stdout.""" - print msg % args + print(msg % args) def writeout_and_stay(msg, *args): """write a line to stdout and stay on the same line.""" # clear out old line - print " " * 70 + "\r", + print(" " * 70 + "\r"), # write out new line - print (msg % args) + "\r", + print((msg % args) + "\r"), sys.stdout.flush() diff --git a/helperscripts/windows-virtualenv/virtualenv.py b/helperscripts/windows-virtualenv/virtualenv.py index 66f3e3d..54310ed 100755 --- a/helperscripts/windows-virtualenv/virtualenv.py +++ b/helperscripts/windows-virtualenv/virtualenv.py @@ -619,6 +619,7 @@ def install_distribute(py_executable, unzip=False, _install_req(py_executable, unzip, distribute=True, search_dirs=search_dirs, never_download=never_download) + _pip_re = re.compile(r'^pip-.*(zip|tar.gz|tar.bz2|tgz|tbz)$', re.I) @@ -1596,6 +1597,7 @@ def make_environment_relocatable(home_dir): fixup_pth_and_egg_link(home_dir) # FIXME: need to fix up distutils.cfg + OK_ABS_SCRIPTS = ['python', 'python%s' % sys.version[:3], 'activate', 'activate.bat', 'activate_this.py'] -- cgit v1.2.3