Skip to content

Commit b3fc971

Browse files
committed
global: format with latest black
The newest version of black changed some formatting slightly.
1 parent 58c1026 commit b3fc971

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

cpython-windows/build.py

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@
7575
"shared_depends_win32": ["libcrypto-1_1", "libssl-1_1"],
7676
"static_depends_no_project": ["libcrypto_static", "libssl_static"],
7777
},
78-
"_tkinter": {"ignore_static": True, "shared_depends": ["tcl86t", "tk86t"],},
78+
"_tkinter": {
79+
"ignore_static": True,
80+
"shared_depends": ["tcl86t", "tk86t"],
81+
},
7982
"_queue": {},
8083
"_uuid": {"ignore_missing": True},
8184
"_zoneinfo": {"ignore_missing": True},
@@ -700,7 +703,10 @@ def copy_link_to_lib(p: pathlib.Path):
700703

701704

702705
def hack_props(
703-
td: pathlib.Path, pcbuild_path: pathlib.Path, arch: str, static: bool,
706+
td: pathlib.Path,
707+
pcbuild_path: pathlib.Path,
708+
arch: str,
709+
static: bool,
704710
):
705711
# TODO can we pass props into msbuild.exe?
706712

@@ -833,7 +839,10 @@ def hack_project_files(
833839
pcbuild_path = cpython_source_path / "PCbuild"
834840

835841
hack_props(
836-
td, pcbuild_path, build_directory, static=static,
842+
td,
843+
pcbuild_path,
844+
build_directory,
845+
static=static,
837846
)
838847

839848
# Our SQLite directory is named weirdly. This throws off version detection
@@ -1467,7 +1476,10 @@ def build_openssl_for_arch(
14671476
"--prefix=/%s" % prefix,
14681477
],
14691478
source_root,
1470-
{**env, "CFLAGS": env.get("CFLAGS", "") + " /FS",},
1479+
{
1480+
**env,
1481+
"CFLAGS": env.get("CFLAGS", "") + " /FS",
1482+
},
14711483
)
14721484

14731485
if "static" in profile:
@@ -2193,7 +2205,9 @@ def build_cpython(
21932205
args.extend(["--include-idle", "--include-stable", "--include-tcltk"])
21942206

21952207
exec_and_log(
2196-
args, pcbuild_path, os.environ,
2208+
args,
2209+
pcbuild_path,
2210+
os.environ,
21972211
)
21982212

21992213
# Install pip and setuptools.
@@ -2375,7 +2389,12 @@ def build_cpython(
23752389
json.dump(python_info, fh, sort_keys=True, indent=4)
23762390

23772391
dest_path = BUILD / (
2378-
"cpython-%s-%s-%s.tar" % (entry["version"], target_triple, profile,)
2392+
"cpython-%s-%s-%s.tar"
2393+
% (
2394+
entry["version"],
2395+
target_triple,
2396+
profile,
2397+
)
23792398
)
23802399

23812400
data = io.BytesIO()
@@ -2473,7 +2492,9 @@ def main():
24732492
release_tag = release_tag_from_git()
24742493

24752494
compress_python_archive(
2476-
tar_path, DIST, "%s-%s" % (tar_path.stem, release_tag),
2495+
tar_path,
2496+
DIST,
2497+
"%s-%s" % (tar_path.stem, release_tag),
24772498
)
24782499

24792500

0 commit comments

Comments
 (0)