Close the README template file after reading it

This commit is contained in:
XhmikosR
2026-07-05 17:53:50 +03:00
parent 00d7f66ef6
commit 15aa742a19
+4 -2
View File
@@ -90,8 +90,10 @@ def main():
"wt",
encoding="utf-8",
newline="\n",
) as out:
for line in open(README_TEMPLATE, encoding="utf-8", newline="\n"):
) as out, open(
README_TEMPLATE, encoding="utf-8", newline="\n"
) as template:
for line in template:
line = line.replace(
"@GEN_DATE@", time.strftime("%B %d %Y", time.gmtime())
)