Skip to content

Commit 66b78dc

Browse files
committed
Don't use dir a variable name
1 parent 8a9018a commit 66b78dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ def chown(self, location, user, group=None, recursive=False):
391391
location = self.path(location)
392392
if recursive and os.path.isdir(location):
393393
for root, dirs, files in os.walk(location):
394-
for dir in dirs:
395-
shutil.chown(os.path.join(root, dir), user, group)
394+
for directory in dirs:
395+
shutil.chown(os.path.join(root, directory), user, group)
396396
for file in files:
397397
shutil.chown(os.path.join(root, file), user, group)
398398
else:

0 commit comments

Comments
 (0)