From 64b9b6071ed007d81cb7304ba5c3cd5af21453f9 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 20 Feb 2021 20:56:31 -0600 Subject: [PATCH] [nostalgia/scripts/pybb] Remove permission manipulation from rm --- scripts/pybb | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/pybb b/scripts/pybb index 25c5267f..f52b45d6 100644 --- a/scripts/pybb +++ b/scripts/pybb @@ -11,10 +11,8 @@ def mkdir(path): def rm(path): if (os.path.exists(path) or os.path.islink(path)) and not os.path.isdir(path): - os.chmod(path, stat.S_IWRITE) os.remove(path) elif os.path.isdir(path): - os.chmod(path, stat.S_IWRITE) shutil.rmtree(path) if sys.argv[1] == 'mkdir':