Skip to content

Commit

Permalink
use Path.unlink() instead of os.unlink()
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed Jun 16, 2022
1 parent 526c554 commit e6513a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def build(options: Options, tmp_path: Path) -> None:
# we're all done here; move it to output (overwrite existing)
if abi3_wheel is None:
try:
os.remove(build_options.output_dir / repaired_wheel.name)
(build_options.output_dir / repaired_wheel.name).unlink()
except OSError:
pass

Expand Down

0 comments on commit e6513a9

Please sign in to comment.