Skip to content

Commit 344df64

Browse files
committed
lint
1 parent ae8f67c commit 344df64

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/auditwheel/tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def zip2dir(zip_fname: Path, out_dir: Path) -> None:
110110
attr &= 511 # only keep permission bits
111111
attr |= 6 << 6 # at least read/write for current user
112112
os.chmod(extracted_path, attr)
113-
logger.info(f"zip2dir from {zip_fname} to {out_dir} takes {datetime.now() - start}")
113+
logger.info(
114+
"zip2dir from %s to %s takes %s", zip_fname, out_dir, datetime.now() - start
115+
)
114116

115117

116118
def dir2zip(in_dir: Path, zip_fname: Path, date_time: datetime | None = None) -> None:
@@ -151,7 +153,9 @@ def dir2zip(in_dir: Path, zip_fname: Path, date_time: datetime | None = None) ->
151153
zinfo.compress_type = compression
152154
with open(fname, "rb") as fp:
153155
z.writestr(zinfo, fp.read(), compresslevel=_COMPRESS_LEVEL)
154-
logger.info(f"dir2zip from {in_dir} to {zip_fname} takes {datetime.now() - start}")
156+
logger.info(
157+
"dir2zip from %s to %s takes %s", in_dir, zip_fname, datetime.now() - start
158+
)
155159

156160

157161
def is_lib(fname: Path) -> bool:

0 commit comments

Comments
 (0)