From cf5b9181c0060f84261b8f53182e3af254898c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 21 Aug 2024 22:27:09 +0200 Subject: [PATCH] [FIX] oca-gen-addon-readme: add missing utf-8 encoding --- tools/gen_addon_readme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gen_addon_readme.py b/tools/gen_addon_readme.py index 5624244b..1f052c6f 100644 --- a/tools/gen_addon_readme.py +++ b/tools/gen_addon_readme.py @@ -408,7 +408,7 @@ def gen_one_addon_index(readme_filename): index_dir = os.path.join(addon_dir, "static", "description") index_filename = os.path.join(index_dir, "index.html") if os.path.exists(index_filename): - with open(index_filename) as f: + with open(index_filename, encoding="utf-8") as f: if "oca-gen-addon-readme" not in f.read(): # index was created manually return