Skip to content

Commit 7bc3e74

Browse files
committed
Fixed bug introduced by pylint suggestion
1 parent 4da4afa commit 7bc3e74

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
@@ -194,8 +194,8 @@ def load_template(self, template, **kwargs):
194194
template_content = template_file.read()
195195

196196
# Render the template with the provided context
197-
for key in kwargs.items():
198-
template_content = template_content.replace(f"{{{key}}}", str(kwargs[key]))
197+
for key, value in kwargs.items():
198+
template_content = template_content.replace(f"{{{key}}}", str(value))
199199

200200
return template_content
201201

0 commit comments

Comments
 (0)