Skip to content

Commit 1522b71

Browse files
committed
Use class write funtion for appending
1 parent 45b0caf commit 1522b71

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
@@ -181,8 +181,8 @@ def write_templated_file(self, output_path, template, **kwargs):
181181
)
182182
return False
183183

184-
with open(output_path, "w") as output_file:
185-
output_file.write(rendered_content)
184+
append = kwargs.get("append", False)
185+
self.write_text_file(output_path, rendered_content, append=append)
186186

187187
return True
188188

0 commit comments

Comments
 (0)