From 66f2597dc6a0d8ab83f65e618d41ef0614aea31c Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Tue, 23 Jul 2024 23:25:19 +0300 Subject: [PATCH] Specify encoding explicitly --- ci-scripts/no_pot_creation_date.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-scripts/no_pot_creation_date.py b/ci-scripts/no_pot_creation_date.py index 894cc4c..142e951 100644 --- a/ci-scripts/no_pot_creation_date.py +++ b/ci-scripts/no_pot_creation_date.py @@ -4,7 +4,7 @@ data = pot_path.read_text("utf-8").splitlines(keepends=True) -with pot_path.open("w") as pot_file: +with pot_path.open("w", encoding="utf-8") as pot_file: for line in data: if line.startswith('"POT-Creation-Date:'): continue