use Path.unlink() instead of os.unlink()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user