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)
|
# we're all done here; move it to output (overwrite existing)
|
||||||
if abi3_wheel is None:
|
if abi3_wheel is None:
|
||||||
try:
|
try:
|
||||||
os.remove(build_options.output_dir / repaired_wheel.name)
|
(build_options.output_dir / repaired_wheel.name).unlink()
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user