mirror of https://github.com/python/cpython
Issue #28666: Fix removing readonly directories on Windows.
This commit is contained in:
commit
9f64de8ba4
|
@ -364,7 +364,7 @@ if sys.platform.startswith("win"):
|
|||
else:
|
||||
_force_run(path, os.unlink, fullname)
|
||||
_waitfor(_rmtree_inner, path, waitall=True)
|
||||
_waitfor(os.rmdir, path)
|
||||
_waitfor(lambda p: _force_run(p, os.rmdir, p), path)
|
||||
else:
|
||||
_unlink = os.unlink
|
||||
_rmdir = os.rmdir
|
||||
|
|
Loading…
Reference in New Issue