From 41d50bb2dfb207c515f796ab645dcbc38ccec549 Mon Sep 17 00:00:00 2001 From: Oliver 'kfsone' Smith Date: Wed, 5 Jun 2024 18:44:22 -0700 Subject: [PATCH] refactor: match python style to linter requirements --- cpython-windows/build.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)