Skip to content

Commit 67c3781

Browse files
committed
Fix up imports
1 parent 9d930ce commit 67c3781

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

relenv/build/darwin.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,11 @@ def update_expat(dirs: Dirs, env: MutableMapping[str, str]) -> None:
9595

9696
# Touch all updated files to ensure make rebuilds them
9797
# (The tarball may contain files with newer timestamps)
98-
import time
99-
import os
100-
10198
now = time.time()
10299
for target_file in updated_files:
103100
os.utime(target_file, (now, now))
104101

105102
# Update SBOM with correct checksums for updated expat files
106-
from relenv.build.common import update_sbom_checksums
107-
108103
files_to_update = {}
109104
for target_file in updated_files:
110105
# SBOM uses relative paths from Python source root

relenv/build/linux.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,15 +408,11 @@ def update_expat(dirs: Dirs, env: EnvMapping) -> None:
408408

409409
# Touch all updated files to ensure make rebuilds them
410410
# (The tarball may contain files with newer timestamps)
411-
import time
412-
413411
now = time.time()
414412
for target_file in updated_files:
415413
os.utime(target_file, (now, now))
416414

417415
# Update SBOM with correct checksums for updated expat files
418-
from relenv.build.common import update_sbom_checksums
419-
420416
files_to_update = {}
421417
for target_file in updated_files:
422418
# SBOM uses relative paths from Python source root

relenv/build/windows.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import shutil
1515
import sys
1616
import tarfile
17+
import time
1718
from typing import IO, MutableMapping, Union
1819

1920
from .common import (
@@ -24,6 +25,7 @@
2425
install_runtime,
2526
patch_file,
2627
update_ensurepip,
28+
update_sbom_checksums,
2729
)
2830
from ..common import (
2931
WIN32,
@@ -259,17 +261,13 @@ def update_expat(dirs: Dirs, env: EnvMapping) -> None:
259261

260262
# Touch all updated files to ensure MSBuild rebuilds them
261263
# (The original files may have newer timestamps)
262-
import time
263-
264264
now = time.time()
265265
for target_file in updated_files:
266266
os.utime(target_file, (now, now))
267267

268268
# Map SBOM file names to actual file paths
269269
# Update SBOM with correct checksums for updated expat files
270270
# Map SBOM file names to actual file paths
271-
from relenv.build.common import update_sbom_checksums
272-
273271
files_to_update = {}
274272
for target_file in updated_files:
275273
# SBOM uses relative paths from Python source root

0 commit comments

Comments
 (0)