mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 06:10:20 +01:00
Close the README template file after reading it
This commit is contained in:
+4
-2
@@ -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())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user