mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-10-05 06:11:13 +01:00
Merge pull request #1170 from funilrys/utf-8-readme
Ensure that the readme is written in UTF-8.
This commit is contained in:
+3
-1
@@ -79,7 +79,9 @@ def main():
|
||||
this_row.update(source)
|
||||
source_rows += t.substitute(this_row) + "\n"
|
||||
|
||||
with open(os.path.join(data[key]["location"], README_FILENAME), "wt") as out:
|
||||
with open(
|
||||
os.path.join(data[key]["location"], README_FILENAME), "wt", encoding="utf-8"
|
||||
) as out:
|
||||
for line in open(README_TEMPLATE):
|
||||
line = line.replace(
|
||||
"@GEN_DATE@", time.strftime("%B %d %Y", time.gmtime())
|
||||
|
||||
Reference in New Issue
Block a user