apply numpy docstyle

This commit is contained in:
Benedikt Brückmann 2021-06-14 08:34:57 +02:00
parent 01b9fb1549
commit 9038161b70
2 changed files with 2 additions and 6 deletions

View file

@ -4528,7 +4528,7 @@ NDKS = [
def handle_retree_error_on_windows(function, path, excinfo):
"""Python can't remove a readonly file on Windows so chmod first"""
"""Python can't remove a readonly file on Windows so chmod first."""
if function in (os.unlink, os.rmdir, os.remove) and excinfo[0] == PermissionError:
os.chmod(path, stat.S_IWRITE)
function(path)