From 66b78dc9e48e126cb2679d4c3240ca5aa5b24a2c Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 15 Nov 2022 10:38:41 -0800 Subject: [PATCH] Don't use dir a variable name --- adafruit_shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_shell.py b/adafruit_shell.py index f0b87f3..28b3a05 100644 --- a/adafruit_shell.py +++ b/adafruit_shell.py @@ -391,8 +391,8 @@ class Shell: location = self.path(location) if recursive and os.path.isdir(location): for root, dirs, files in os.walk(location): - for dir in dirs: - shutil.chown(os.path.join(root, dir), user, group) + for directory in dirs: + shutil.chown(os.path.join(root, directory), user, group) for file in files: shutil.chown(os.path.join(root, file), user, group) else: