diff --git a/cpython-windows/build.py b/cpython-windows/build.py index cc9e5dc6..8105d4f5 100644 --- a/cpython-windows/build.py +++ b/cpython-windows/build.py @@ -224,8 +224,10 @@ def find_vswhere(): def find_vs_path(path, msvc_version): - """ Attempts to find 'path' by invoking vswhere to identify where the - given msvc_version is installed. """ + """ + Attempts to find 'path' by invoking vswhere to identify where the + given msvc_version is installed. + """ vswhere = find_vswhere() if msvc_version == "2019": @@ -248,12 +250,12 @@ def find_vs_path(path, msvc_version): ] p = subprocess.check_output(cmdline) if not p: - cmd = ' '.join('"%s"' % i for i in cmdline) + cmd = " ".join('"%s"' % i for i in cmdline) print("could not find visual studio (using '%s')" % cmd) sys.exit(1) p = p.strip().decode("utf-8") - if '\n' in p: # more than one line + if "\n" in p: # more than one line print("found multiple matching instances of visual studio %s:" % msvc_version) print(p) sys.exit(1)