Skip to content

Commit 28f1318

Browse files
tkoyama010lwasser
authored andcommitted
os.remove("foo") should be replaced by foo_path.unlink()
1 parent 0c819ed commit 28f1318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def clean_dir(session):
139139
if content.is_dir():
140140
shutil.rmtree(content)
141141
else:
142-
os.remove(content)
142+
pathlib.Path(content).unlink()
143143

144144

145145
@nox.session(name="update-translations")

0 commit comments

Comments
 (0)